blob: 0ee9590577edc8454a0e656bfcfc88777b3f7d01 (
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
37
38
39
|
#!/bin/sh
# $FreeBSD$
# Start or stop milterregex
# PROVIDE: milterregex
# REQUIRE: DAEMON
# BEFORE: mail
# KEYWORD: shutdown
spooldir=%%SPOOLDIR%%
# Define these milterregex_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/milterregex
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
# milterregex_flags Flags to milter-regex program
[ -z "$milterregex_enable" ] && milterregex_enable="NO" # Enable milter-regex
. /etc/rc.subr
name="milterregex"
rcvar=`set_rcvar`
command="%%PREFIX%%/libexec/milter-regex"
pidfile="${spooldir}/milter-regex.pid"
required_files="%%PREFIX%%/etc/milter-regex.conf"
stop_postcmd="milterregex_poststop"
milterregex_poststop() {
/bin/rm -f ${pidfile}
}
load_rc_config $name
run_rc_command "$1"
|