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

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
}