summaryrefslogtreecommitdiff
path: root/app-emulation/virtualbox-bin/files/vboxwebsrv-initd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-02-16 13:45:59 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-02-16 13:45:59 +0000
commit87b2b18d465c0adbd4afe3be4dd6101a8946a89c (patch)
tree40e762c67da3d5b0e5e451bcae6d41b235237cb9 /app-emulation/virtualbox-bin/files/vboxwebsrv-initd
parent979e027140c679b4b4016babd45d3d222351d84c (diff)
app-emulation/virtualbox-bin : revive
Diffstat (limited to 'app-emulation/virtualbox-bin/files/vboxwebsrv-initd')
-rw-r--r--app-emulation/virtualbox-bin/files/vboxwebsrv-initd23
1 files changed, 23 insertions, 0 deletions
diff --git a/app-emulation/virtualbox-bin/files/vboxwebsrv-initd b/app-emulation/virtualbox-bin/files/vboxwebsrv-initd
new file mode 100644
index 00000000..e6009970
--- /dev/null
+++ b/app-emulation/virtualbox-bin/files/vboxwebsrv-initd
@@ -0,0 +1,23 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+start() {
+ #checkconfig || return $?
+
+ ebegin "Starting VirtualBox WebService"
+ start-stop-daemon --start --quiet --user ${VBOXWEBSRV_USER} --pidfile /var/run/vboxwebsrv.pid \
+ --background --make-pidfile --exec /opt/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 $?
+}