diff options
author | V3n3RiX <venerix@rogentos.ro> | 2016-11-25 22:18:25 +0000 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2016-11-25 22:18:25 +0000 |
commit | 7aba9a6840ddbcc6454a1451193554d68d182b48 (patch) | |
tree | 7c5e50fdcb56635b76625075c75b86e84b4e47b0 /app-emulation/virtualbox/files/vboxwebsrv-initd | |
parent | 8c860d0b7120d4df5c90d9442e710a817788770f (diff) |
vbox OSE 5.1.8
Diffstat (limited to 'app-emulation/virtualbox/files/vboxwebsrv-initd')
-rw-r--r-- | app-emulation/virtualbox/files/vboxwebsrv-initd | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app-emulation/virtualbox/files/vboxwebsrv-initd b/app-emulation/virtualbox/files/vboxwebsrv-initd new file mode 100644 index 00000000..d9544962 --- /dev/null +++ b/app-emulation/virtualbox/files/vboxwebsrv-initd @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 $? +} |