From 173085d78fcbf9e4c12a2440d9569feade230abc Mon Sep 17 00:00:00 2001 From: ace Date: Wed, 13 Mar 2019 02:34:07 +0300 Subject: [PATCH] update app-emulation/virtualbmc-1.4.0 ebuild --- .../virtualbmc/files/virtualbmc-initd | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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 $? }