gentoo-ebuilds/app-emulation/virtualbox-kvm/files/vboxwebsrv-initd
Viorel Munteanu aa9637bdc0
app-emulation/virtualbox-kvm: new package, add 7.0.14_pre20240208, 9999
This is a prerelease, add it unkeyworded.  Not production ready.

Closes: https://bugs.gentoo.org/924123
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
2024-02-10 18:30:47 +02:00

21 lines
646 B
Text

#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
need net
}
start() {
ebegin "Starting VirtualBox WebService"
start-stop-daemon --start --quiet --user ${VBOXWEBSRV_USER} --pidfile /var/run/vboxwebsrv.pid \
--background --make-pidfile --exec /usr/bin/vboxwebsrv \
-- -H ${VBOXWEBSRV_HOST} -p ${VBOXWEBSRV_PORT} -t ${VBOXWEBSRV_TIMEOUT} -i ${VBOXWEBSRV_INTERVAL}
eend $?
}
stop() {
ebegin "Stopping VirtualBox WebService"
start-stop-daemon --stop --user ${VBOXWEBSRV_USER} --quiet --pidfile /var/run/vboxwebsrv.pid
eend $?
}