summaryrefslogtreecommitdiff
path: root/watchdog.initd
diff options
context:
space:
mode:
Diffstat (limited to 'watchdog.initd')
-rw-r--r--watchdog.initd13
1 files changed, 13 insertions, 0 deletions
diff --git a/watchdog.initd b/watchdog.initd
new file mode 100644
index 0000000..0965e5e
--- /dev/null
+++ b/watchdog.initd
@@ -0,0 +1,13 @@
+#!/usr/bin/openrc-run
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/bin/watchdog"
+command_args="${WATCHDOG_OPTS}"
+pidfile="/run/${RC_SVCNAME}.pid"
+start_stop_daemon_args="--background --make-pidfile"
+
+depend() {
+ need localmount
+ after bootmisc
+}