diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2017-05-15 13:03:40 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2017-05-15 13:03:40 +0200 |
commit | a1982c3a45bf1471021f828c91603df74f204f07 (patch) | |
tree | 922f4f420199c4d09cc7b9ed8fe51d2f50c652a5 /community/ipmitool/ipmievd.initd | |
parent | 1e88af3fadc195df9cccc0d4623e75939fd5d2fb (diff) | |
download | aports-a1982c3a45bf1471021f828c91603df74f204f07.tar.bz2 aports-a1982c3a45bf1471021f828c91603df74f204f07.tar.xz |
testing/ipmitool: move to community
Diffstat (limited to 'community/ipmitool/ipmievd.initd')
-rw-r--r-- | community/ipmitool/ipmievd.initd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/community/ipmitool/ipmievd.initd b/community/ipmitool/ipmievd.initd new file mode 100644 index 0000000000..2206791155 --- /dev/null +++ b/community/ipmitool/ipmievd.initd @@ -0,0 +1,25 @@ +#!/sbin/openrc-run +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/ipmitool/files/ipmitool-1.8.9-ipmievd.initd,v 1.1 2007/09/23 06:03:42 robbat2 Exp $ +# /etc/init.d/ipmievd + +depend() { + use logger +} +PN="ipmievd" + +start() { + /sbin/modprobe -sq ipmi_msghandler + /sbin/modprobe -sq ipmi_devintf + /sbin/modprobe -sq ipmi_si + ebegin "Starting ${PN}" + start-stop-daemon --start --pidfile /var/run/${PN}.pid0 --exec /usr/sbin/${PN} -- -I ${INTERFACE} ${OPTIONS} ${COMMAND} + eend $? +} + +stop() { + ebegin "Stopping ${PN}" + start-stop-daemon --stop --pidfile /var/run/${PN}.pid0 + eend $? +} |