mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
24 lines
363 B
Bash
Executable file
24 lines
363 B
Bash
Executable file
#!/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
|
|
|