blob: 5f82af096862e933d167a5edd7d5829c0fe78fd9 (
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
32
33
34
35
36
37
38
39
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: pfspamd
# REQUIRE: NETWORKING
# BEFORE: mail
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable spamd:
# pfspamd_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable spamd
# pfspamd_flags (str): Set to "" by default.
# Extra flags passed to start command.
. %%RC_SUBR%%
name="pfspamd"
rcvar=`set_rcvar`
command="%%PREFIX%%/libexec/spamd"
start_postcmd="pfspamd_postcmd"
restart_postcmd="pfspamd_postcmd"
[ -z "$pfspamd_enable" ] && pfspamd_enable="NO"
[ -z "$pfspamd_flags" ] && pfspamd_flags=""
load_rc_config $name
pfspamd_postcmd()
{
if [ -x %%PREFIX%%/sbin/spamd-setup ]; then
%%PREFIX%%/sbin/spamd-setup
fi
}
run_rc_command "$1"
|