blob: d3f4818c0d73971537a5a0cec3ad5ce5ad87a3dc (
plain) (
blame)
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
32
33
34
35
36
|
#!/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=${name}_enable
pidfile="%%MAILMANDIR%%/data/master-qrunner.pid"
load_rc_config $name
: ${mailman_enable="NO"}
start_cmd=${name}_start
stop_cmd=${name}_stop
extra_commands="reload"
mailman_start() {
%%MAILMANDIR%%/bin/mailmanctl -s -q start
}
mailman_stop() {
%%MAILMANDIR%%/bin/mailmanctl -q stop
}
run_rc_command "$1"
|