summaryrefslogtreecommitdiff
path: root/japanese/mailman/files/mailman.in
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/mailman/files/mailman.in')
-rw-r--r--japanese/mailman/files/mailman.in50
1 files changed, 0 insertions, 50 deletions
diff --git a/japanese/mailman/files/mailman.in b/japanese/mailman/files/mailman.in
deleted file mode 100644
index 0ac5450c53d4..000000000000
--- a/japanese/mailman/files/mailman.in
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-# PROVIDE: mailman
-# REQUIRE: LOGIN
-# KEYWORD: shutdown
-#
-# Add the following lines to /etc/rc.conf to enable mailman:
-# mailman_enable (bool): Set it to "YES" to enable mailman.
-# Default is "NO".
-
-. /etc/rc.subr
-
-name="mailman"
-rcvar=mailman_enable
-
-pidfile="%%MAILMANDIR%%/data/master-qrunner.pid"
-
-load_rc_config $name
-
-: ${mailman_enable="NO"}
-
-start_cmd=${name}_start
-stop_cmd=${name}_stop
-status_cmd=${name}_status
-extra_commands="reload status"
-
-mailman_start() {
- %%MAILMANDIR%%/bin/mailmanctl -s -q start
-}
-
-mailman_stop() {
- [ -f $pidfile ] \
- && %%MAILMANDIR%%/bin/mailmanctl -q stop \
- || echo ${name} not running? \(check ${pidfile}\)
-}
-
-mailman_status() {
- local retcode=0
- if [ -f $pidfile ] && ps -p $(cat $pidfile) > /dev/null; then
- echo $name is running as pid $(cat $pidfile).
- else
- echo $name is not running.
- retcode=1
- fi
- return $retcode
-}
-
-run_rc_command "$1"