aboutsummaryrefslogtreecommitdiff
path: root/mail/py-ppolicy/files/ppolicyd.sh.in
blob: c1592221b35f89baf251941b80889b6d8884fe6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/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

. %%RC_SUBR%%

name="ppolicyd"
rcvar=`set_rcvar`

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"