summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-libs/freeipmi/files/bmc-watchdog.initd.3')
-rw-r--r--sys-libs/freeipmi/files/bmc-watchdog.initd.315
1 files changed, 15 insertions, 0 deletions
diff --git a/sys-libs/freeipmi/files/bmc-watchdog.initd.3 b/sys-libs/freeipmi/files/bmc-watchdog.initd.3
new file mode 100644
index 00000000000..e662c9537aa
--- /dev/null
+++ b/sys-libs/freeipmi/files/bmc-watchdog.initd.3
@@ -0,0 +1,15 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+extra_commands="condrestart"
+description_condrestart="Restart the service only if started already"
+
+command="/usr/sbin/${SVCNAME}"
+command_args="${OPTIONS}"
+pidfile=/var/run/$SVCNAME.pid
+
+condrestart() {
+ service_started && restart
+}