summaryrefslogtreecommitdiff
path: root/app-emulation/virtualbox-bin/files/vboxwebsrv-initd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2015-07-12 12:02:24 +0100
committerV3n3RiX <venerix@rogentos.ro>2015-07-12 12:02:24 +0100
commit036bf223e7fcb4d26f575f641a41ba82c2997f30 (patch)
treea05dc62d848ce2887a4c2fab4833976f4982ba3b /app-emulation/virtualbox-bin/files/vboxwebsrv-initd
parent9cb2868c054569a17ed61d112aecdaa5a6d3ca23 (diff)
here we go...virtualbox-bin 5.0.0 && virtualbox-modules 5.0.0
Diffstat (limited to 'app-emulation/virtualbox-bin/files/vboxwebsrv-initd')
-rw-r--r--app-emulation/virtualbox-bin/files/vboxwebsrv-initd24
1 files changed, 24 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..68ec1146
--- /dev/null
+++ b/app-emulation/virtualbox-bin/files/vboxwebsrv-initd
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-bin/files/vboxwebsrv-initd,v 1.7 2012/03/16 22:38:49 hwoarang Exp $
+
+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 $?
+}