diff --git a/app-emulation/virtualbmc/files/virtualbmc-initd b/app-emulation/virtualbmc/files/virtualbmc-initd index b99f608..ef51dc3 100644 --- a/app-emulation/virtualbmc/files/virtualbmc-initd +++ b/app-emulation/virtualbmc/files/virtualbmc-initd @@ -4,14 +4,22 @@ description="A virtual BMC for controlling virtual machines using IPMI commands" pidfile="/var/run/vbmcd.pid" -command="/usr/sbin/vbmcd" +command="/usr/bin/vbmcd" start_stop_daemon_args="--pidfile ${pidfile}" depend() { - use net dns logger - after libvirtd + use net dns logger + after libvirtd } -start_pre() { - return 0 +start() { + ebegin "Starting vbmcd" + start-stop-daemon --start ${start_stop_daemon_args} --make-pidfile -b --exec ${command} -- --foreground + eend $? +} + +stop() { + ebegin "Stopping vbmcd" + start-stop-daemon --stop ${start_stop_daemon_args} --exec ${command} + eend $? }