blob: 3d43983949b5254d72adca4e29284a596b531e20 (
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
30
31
|
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: mailman.sh,v 1.2 2008/09/21 18:30:00 martti Exp $
#
# PROVIDE: mailman
# REQUIRE: mail
# KEYWORD: shutdown
if [ -f /etc/rc.subr ]
then
. /etc/rc.subr
fi
name="mailman"
rcvar=$name
ctl_command="@PREFIX@/lib/mailman/bin/mailmanctl"
start_cmd="mailman_doit -s start"
stop_cmd="mailman_doit stop"
restart_cmd="mailman_doit restart"
mailman_doit ()
{
${ctl_command} $*
}
if [ -f /etc/rc.subr ]; then
load_rc_config $name
run_rc_command "$1"
else
mailman_doit "$1"
fi
|