#!/bin/sh
#
# $FreeBSD: ports/mail/postfix-policyd-sf/files/policyd.sh.in,v 1.4 2006/08/10 01:33:23 clsung Exp $
#
# PROVIDE: postfix-policyd-sf
# REQUIRE: LOGIN mysql
# BEFORE: mail postfix
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable policyd:
#
# postfix_policyd_sf_enable="YES"
#
. /etc/rc.subr
name=postfix_policyd_sf
rcvar=`set_rcvar`
command=/usr/local/sbin/postfix-policyd-sf
stop_postcmd=stop_postcmd
stop_postcmd()
{
rm -f $pidfile
}
# set defaults
postfix_policyd_sf_enable=${postfix_policyd_sf_enable:-"NO"}
postfix_policyd_sf_pidfile=${postfix_policyd_sf_pidfile:-"/var/run/postfix-policyd-sf.pid"}
postfix_policyd_sf_flags=${postfix_policyd_sf_flags:-"-c /usr/local/etc/postfix-policyd-sf.conf"}
pidfile="${postfix_policyd_sf_pidfile}"
load_rc_config $name
run_rc_command "$1"
syntax highlighted by Code2HTML, v. 0.9.1