blob: 79c1cd66131af5e1a94145e955c29ad3cb2a552d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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:
|