aboutsummaryrefslogtreecommitdiffstats
path: root/community/ipmitool/ipmievd.initd
blob: 220679115545f2844d74bed2f85c0827ebb96076 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 $?
}