aboutsummaryrefslogtreecommitdiffstats
path: root/main/busybox-initscripts/watchdog.initd
blob: 5b0435c920a2eaaf879c4c67cb579a7649bf2a48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/sbin/openrc-run

name="busybox watchdog"
command="/sbin/watchdog"
command_args="${WATCHDOG_OPTS} ${WATCHDOG_DEV}"
pidfile="/var/run/watchdog.pid"
depend() {
	need dev
	after hwdrivers
}

start_pre() {
	if ! [ -n "$WATCHDOG_DEV" ]; then
		eerror "WATCHDOG_DEV is not set"
		return 1
	fi
}