518b4773af
Require at least 5.6.0 and point users to 5.8.5
41 lines
603 B
Bash
41 lines
603 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: spamd
|
|
# REQUIRE: LOGIN
|
|
# BEFORE: mail
|
|
# KEYWORD: FreeBSD shutdown
|
|
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable spamd:
|
|
#
|
|
#spamd_enable="YES"
|
|
#
|
|
# See spamd(8) for flags
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name=spamd
|
|
rcvar=`set_rcvar`
|
|
|
|
command=%%PREFIX%%/bin/spamd
|
|
required_dirs=%%PREFIX%%/share/spamassassin
|
|
|
|
stop_postcmd=stop_postcmd
|
|
|
|
stop_postcmd()
|
|
{
|
|
rm -f $pidfile
|
|
}
|
|
|
|
# set defaults
|
|
|
|
spamd_enable=${spamd_enable:-"NO"}
|
|
spamd_pidfile=${spamd_pidfile:-"/var/run/spamd.pid"}
|
|
spamd_flags=${spamd_flags:-"-c -d -r ${spamd_pidfile}"}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|