summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2006-07-13 17:16:49 +0000
committerChristian Heim <phreak@gentoo.org>2006-07-13 17:16:49 +0000
commit15a634f41fee7dceb93f2010f908786062cb28f2 (patch)
treee76d7fa0d4173bba6a1a42119bdcef42d6007dce /sys-apps/watchdog/files/watchdog-init.d
parentRemove ebuilds lacking upstream sources. Update HOMEPAGE for all ebuilds. (diff)
downloadgentoo-2-15a634f41fee7dceb93f2010f908786062cb28f2.tar.gz
gentoo-2-15a634f41fee7dceb93f2010f908786062cb28f2.tar.bz2
gentoo-2-15a634f41fee7dceb93f2010f908786062cb28f2.zip
Cleanup; Version bump; Taking temporary maintainership
(Portage version: 2.1.1_pre2-r8)
Diffstat (limited to 'sys-apps/watchdog/files/watchdog-init.d')
-rw-r--r--sys-apps/watchdog/files/watchdog-init.d22
1 files changed, 22 insertions, 0 deletions
diff --git a/sys-apps/watchdog/files/watchdog-init.d b/sys-apps/watchdog/files/watchdog-init.d
new file mode 100644
index 000000000000..03cd7c2cb110
--- /dev/null
+++ b/sys-apps/watchdog/files/watchdog-init.d
@@ -0,0 +1,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-init.d,v 1.1 2006/07/13 17:16:49 phreak 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 ${?}
+}