contrib/package/freifunk-watchdog: nuke cronjob if wd is disabled and stop is invoked
This commit is contained in:
parent
07b6a704c4
commit
dc4b478e7b
@ -30,4 +30,10 @@ start()
|
||||
stop()
|
||||
{
|
||||
start-stop-daemon -q -p $PID -x $BIN -K
|
||||
|
||||
if ! /etc/init.d/freifunk-watchdog enabled; then
|
||||
if grep -q "$BIN" /etc/crontabs/root 2>/dev/null; then
|
||||
sed -i -e "\\'$BIN'd" /etc/crontabs/root
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user