freebsd-ports/mail/p5-Mail-SpamAssassin/files/sa-spamd.sh.in
Beech Rintoul 6dcd081d11 - Fix options
- Bump portrevision

PR:		ports/120570
Submitted by:	Michael Scheidell <scheidell@secnap.net> (maintainer)
2008-02-13 04:13:43 +00:00

43 lines
635 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: spamd
# REQUIRE: LOGIN
# BEFORE: mail
# KEYWORD: 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`
extra_commands="reload"
load_rc_config $name
# Set defaults
: ${spamd_enable:="NO"}
: ${spamd_flags="-c %%SQL_FLAG%% %%RUN_AS_USER%%"}
pidfile=${spamd_pidfile:-"/var/run/spamd/spamd.pid"}
command=%%PREFIX%%/bin/spamd
command_args="-d -r ${pidfile}"
required_dirs=%%PREFIX%%/share/spamassassin
stop_postcmd=stop_postcmd
stop_postcmd()
{
rm -f $pidfile
}
run_rc_command "$1"