pmaports/main/watchdog-kick/watchdog-kick.init
Filip Matijević 2cc6ae4a9d Add basic support for Nokia N9 (#1101)
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
2018-01-09 16:42:55 +00:00

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
}