blob: 6a9fb1cafc7da4ea8f7ad66b43a77e033a8b1125 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/watchdog/files/watchdog-5.2.6_p1-init.d,v 1.1 2006/06/25 10:50:21 brix Exp $
depend() {
need localmount
use logger
}
start() {
ebegin "Starting watchdog"
start-stop-daemon --start --quiet --exec /usr/sbin/watchdog \
-- ${WATCHDOG_OPTS}
eend ${?}
}
stop() {
ebegin "Stopping watchdog"
start-stop-daemon --stop --retry 5 --quiet --exec /usr/sbin/watchdog
eend ${?}
}
|