aboutsummaryrefslogtreecommitdiffstats
path: root/mail/spampd/files/spampd.in
blob: 26bb226c9c90a03b151e13101b24f7f54ae68e27 (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
#!/bin/sh
#
# PROVIDE: spampd
# REQUIRE: LOGIN
# BEFORE: mail
# KEYWORD: shutdown
#
# Add the fellowing line to /etc/rc.conf to enable spampd:
#
# spampd_enable (bool):     Set it to "YES" to enable spampd
#               Default is "NO"
# spampd_flags

. /etc/rc.subr

name="spampd"
rcvar=spampd_enable

: ${spampd_enable="NO"}
: ${spampd_pidfile="/var/run/spamd/spampd.pid"}
: ${spampd_flags="--user=spamd --group=spamd --host 127.0.0.1:10024 --relayhost=127.0.0.1:10025 --dose --tagall --auto-whitelist"}

load_rc_config $name

command="%%PREFIX%%/sbin/$name"
command_args="--pid=${spampd_pidfile}"
command_interpreter="%%PERL%% -T"
pidfile="${spampd_pidfile}"

run_rc_command $1