summaryrefslogtreecommitdiff
blob: dc7df863d6371f79333de85c886f47d0dda6c1bb (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.4_p5-init.d,v 1.2 2006/02/01 15:37:43 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 ${?}
}