freebsd-ports/mail/p5-Mail-SpamAssassin/files/spamd.sh
Mathieu Arnold 518b4773af Update to 3.0.0
Require at least 5.6.0 and point users to 5.8.5
2004-10-12 10:42:38 +00:00

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"