1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/mail/postfix-policyd-sf/files/policyd.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

41 lines
739 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# 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=postfix_policyd_sf_enable
command=%%PREFIX%%/sbin/%%REALNAME%%
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/%%REALNAME%%.pid"}
postfix_policyd_sf_flags=${postfix_policyd_sf_flags:-"-c %%PREFIX%%/etc/%%REALNAME%%.conf"}
pidfile="${postfix_policyd_sf_pidfile}"
load_rc_config $name
run_rc_command "$1"