freebsd-ports/mail/py-ppolicy/files/ppolicyd.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

32 lines
657 B
Bash

#!/bin/sh
# Start or stop ppolicyd
# $FreeBSD$
# PROVIDE: ppolicyd
# REQUIRE: TWISTD
# KEYWORD: shutdown
# Define these ppolicyd_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
. /etc/rc.subr
name="ppolicyd"
rcvar=ppolicyd_enable
command="%%LOCALBASE%%/bin/twistd"
pidfile="/var/run/ppolicyd.pid"
logfile="/var/log/ppolicyd.log"
load_rc_config $name
: ${ppolicyd_enable="NO"}
command_args="--pidfile=${pidfile} --file=%%PREFIX%%/sbin/ppolilcy.tap --python=%%PREFIX%%/sbin/ppolicy.tap --logfile=${logfile} 2>&1 >/dev/null"
procname="%%PYTHON_CMD%%"
run_rc_command "$1"