blob: 60156e9a9afff1f509ba3a8e94974aa828e6d737 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
exec 2>&1
# general config
. /etc/rc.conf
. /etc/rc.d/functions
BIN=/sbin/munin-node
OPTS=""
SVC=munin-node
PID=`pidof $BIN`
if [ -z "$PID" ]
then
if [ -f /var/run/munin/$SVC.pid ]
then
rm /var/run/munin/$SVC.pid
rm_daemon $SVC
fi
echo "Starting $SVC daemon"
$BIN $OPTS
else
[ -z $PID ] || exec watchpid $PID
fi
|