aports/community/freeipmi/ipmidetectd.initd
2022-10-08 12:06:07 +00:00

26 lines
420 B
Bash

#!/sbin/openrc-run
description="IPMI node detection daemon"
pidfile="/var/run/$RC_SVCNAME.pid"
command="/usr/sbin/$RC_SVCNAME"
start() {
ebegin "Starting $RC_SVCNAME"
start-stop-daemon --start \
--exec $command \
--pidfile $pidfile \
--make-pidfile \
--quiet \
--background \
-- \
$OPTIONS
eend $?
}
stop() {
ebegin "Stopping $RC_SVCNAME"
start-stop-daemon --stop \
--pidfile $pidfile
eend $?
}