diff options
Diffstat (limited to 'community-testing/pound/pound.runit')
-rw-r--r-- | community-testing/pound/pound.runit | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/community-testing/pound/pound.runit b/community-testing/pound/pound.runit new file mode 100644 index 000000000..2e0be991e --- /dev/null +++ b/community-testing/pound/pound.runit @@ -0,0 +1,24 @@ +#!/bin/sh +exec 2>&1 +# general config +. /etc/rc.conf +. /etc/rc.d/functions + +BIN=/usr/sbin/pound +OPTS="-f /etc/pound/pound.cfg -p /var/run/pound.pid" +SVC=pound + +PID=`pidof $BIN` +if [ -z "$PID" ] +then + if [ -f /var/run/$SVC.pid ] + then + rm /var/run/$SVC.pid + rm_daemon $SVC + fi + echo "Starting $SVC daemon" + $BIN $OPTS +else + [ -z $PID ] || exec watchpid $PID +fi + |