diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2011-10-18 09:01:08 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2011-10-18 09:01:08 +0000 |
commit | 04b410117eba856fbe67796f55d1a973ac5a4eca (patch) | |
tree | aaa8a6fc764ce1ce1c5f1c57822d440b6d9fac0d /sys-libs/freeipmi/files | |
parent | Version bump. Dropped old. (diff) | |
download | gentoo-2-04b410117eba856fbe67796f55d1a973ac5a4eca.tar.gz gentoo-2-04b410117eba856fbe67796f55d1a973ac5a4eca.tar.bz2 gentoo-2-04b410117eba856fbe67796f55d1a973ac5a4eca.zip |
Revbump with more OpenRC-style init scripts.
(Portage version: 2.2.0_alpha68/cvs/Linux x86_64)
Diffstat (limited to 'sys-libs/freeipmi/files')
-rw-r--r-- | sys-libs/freeipmi/files/bmc-watchdog.initd.3 | 15 | ||||
-rw-r--r-- | sys-libs/freeipmi/files/ipmidetectd.initd.3 | 8 |
2 files changed, 23 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 000000000000..31a3e476763a --- /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 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/freeipmi/files/bmc-watchdog.initd.3,v 1.1 2011/10/18 09:01:08 flameeyes Exp $ + +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 +} diff --git a/sys-libs/freeipmi/files/ipmidetectd.initd.3 b/sys-libs/freeipmi/files/ipmidetectd.initd.3 new file mode 100644 index 000000000000..aba99d371f9f --- /dev/null +++ b/sys-libs/freeipmi/files/ipmidetectd.initd.3 @@ -0,0 +1,8 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/freeipmi/files/ipmidetectd.initd.3,v 1.1 2011/10/18 09:01:08 flameeyes Exp $ + +command="/usr/sbin/${SVCNAME}" +pidfile=/var/run/$SVCNAME.pid +start_stop_daemon_args="--background --make-pidfile" |