diff options
author | root <root@rshg054.dnsready.net> | 2012-08-07 00:01:58 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-08-07 00:01:58 +0000 |
commit | 9d36fcd5638035abf19f303deebd9e861d384254 (patch) | |
tree | ec8d5410dd1f54369b7b5926bb94cedbc906ef70 /community/mailman/mailman.rc | |
parent | 1613e8d1c11997f5507d90ecfc05213199aca3ed (diff) |
Tue Aug 7 00:01:58 UTC 2012
Diffstat (limited to 'community/mailman/mailman.rc')
-rw-r--r-- | community/mailman/mailman.rc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/community/mailman/mailman.rc b/community/mailman/mailman.rc new file mode 100644 index 000000000..79c1cd661 --- /dev/null +++ b/community/mailman/mailman.rc @@ -0,0 +1,29 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +MAILMANCTL=/usr/lib/mailman/bin/mailmanctl + +case "$1" in + start) + status 'Starting GNU Mailing List Manager' $MAILMANCTL -q start && + add_daemon ${0##*/} || exit 1 + ;; + stop) + status 'Stoping GNU Mailing List Manager' $MAILMANCTL -q stop && + rm_daemon ${0##*/} || exit 1 + ;; + reload) + status 'Reloading GNU Mailing List Manager' $MAILMANCTL -q restart + ;; + restart) + $0 stop && $0 start + ;; + *) + echo "usage: ${0##*/} {start|stop|restart|reload}" >&2 + ;; +esac + +: +# vim:set ts=2 sw=2 ft=sh et: |