diff options
Diffstat (limited to 'mail/dspampd/files/dspampd.rc')
-rw-r--r-- | mail/dspampd/files/dspampd.rc | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/mail/dspampd/files/dspampd.rc b/mail/dspampd/files/dspampd.rc new file mode 100644 index 000000000000..a8306e362941 --- /dev/null +++ b/mail/dspampd/files/dspampd.rc @@ -0,0 +1,40 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: dspampd +# REQUIRE: LOGIN %%CLAMAV%% %%DSPAM%% +# BEFORE: mail +# KEYWORD: FreeBSD shutdown + +# +# Add the following lines to /etc/rc.conf[.local] to enable dspampd: +# +#dspampd_enable="YES" +# + +. /etc/rc.subr + +name=dspampd +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/dspampd > /dev/null 2>&1 +pidfile=/var/run/dspampd.pid +required_dirs=%%ARCHIVE_DIR%% +required_files=%%CONF_DIR%%/dspampd.conf + +stop_postcmd=stop_postcmd + +stop_postcmd() +{ + rm -f $pidfile +} + +# set defaults + +dspampd_enable=${dspampd_enable:-"NO"} +dspampd_flags=${dspampd_flags:-"--daemon"} + +load_rc_config $name +run_rc_command "$1" |