2cc6ae4a9d
Also added the watchdog-kick package: Some devices (namely Nokia N9/950) use more than one watchdog, and watchdog-kick package kicks all of /dev/watchdogs? every 10 seconds so they don't reset the device
27 lines
386 B
Text
27 lines
386 B
Text
#!/sbin/openrc-run
|
|
|
|
cmd=/usr/sbin/watchdog-kick
|
|
pid=/run/watchdog-kick.pid
|
|
|
|
depend() {
|
|
after udev
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting watchdog-kick"
|
|
start-stop-daemon --start --exec $cmd --background --make-pidfile \
|
|
--pidfile $pid
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping watchdog-kick"
|
|
start-stop-daemon --stop --exec $cmd --pidfile $pid
|
|
$cmd -1
|
|
eend $?
|
|
}
|
|
|
|
restart() {
|
|
stop
|
|
start
|
|
}
|