blob: 9ca43754d79bc095e381a5bdcc9f0f291d772136 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh /etc/rc.common
START=99
PID=/var/run/ffwatchd.pid
BIN=/usr/sbin/ffwatchd
boot()
{
if ! grep -q "$BIN" /etc/crontabs/root 2>/dev/null; then
echo "* * * * * $BIN running || /etc/init.d/freifunk-watchdog restart" >> /etc/crontabs/root
fi
start
}
start()
{
start-stop-daemon -q -b -m -p $PID -x $BIN -S
}
stop()
{
start-stop-daemon -q -p $PID -x $BIN -K
}
|