freebsd-ports/mail/spamilter/files/spamilter.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

44 lines
790 B
Bash

#!/bin/sh
# $FreeBSD$
# Start or stop spamilter
# PROVIDE: spamilter
# REQUIRE: DAEMON
# BEFORE: mail
# KEYWORD: shutdown
#
# Define these spamilter_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/spamilter
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
# spamilter_flags Flags to spamilter
spamilter_enable=${spamilter_enable:-"NO"} # Enable spamilter-milter
. /etc/rc.subr
name="spamilter"
rcvar="spamilter_enable"
command="%%PREFIX%%/bin/spamilter"
pidfile="/tmp/Spamilter.pid"
required_files="%%PREFIX%%/etc/spamilter.rc"
start_precmd="spamilter_prestart"
stop_postcmd="spamilter_poststop"
spamilter_prestart() {
/bin/rm -f "${pidfile}"
}
spamilter_poststop() {
/bin/rm -f "${pidfile}"
}
load_rc_config $name
run_rc_command "$1"