blob: a9a681d5a917a17b744c0c7cba7e3d821d318f69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox-watchdog/files/busybox-watchdog.initd,v 1.2 2012/08/29 13:27:03 sbriesen Exp $
depend() {
provide watchdog
}
start() {
export SSD_NICELEVEL
ebegin "Starting busybox-watchdog"
start-stop-daemon --start --quiet --exec /bin/busybox watchdog -- ${WATCHDOG_OPTS}
eend ${?} "Failed to start watchdog"
}
stop() {
ebegin "Stopping busybox-watchdog"
start-stop-daemon --stop --retry 15 --quiet --exec /bin/busybox watchdog
eend ${?} "Failed to stop watchdog"
}
|