diff options
author | 2009-06-09 18:20:46 +0000 | |
---|---|---|
committer | 2009-06-09 18:20:46 +0000 | |
commit | f71fa8f2fcb24cd7eb0f44e3fc7e513e4ed5a620 (patch) | |
tree | 7ade494472c1482df0770228216c3d159af4d881 /app-emulation/virtualbox-ose/files | |
parent | Version bump. Rails support has been unbundled. (diff) | |
download | gentoo-2-f71fa8f2fcb24cd7eb0f44e3fc7e513e4ed5a620.tar.gz gentoo-2-f71fa8f2fcb24cd7eb0f44e3fc7e513e4ed5a620.tar.bz2 gentoo-2-f71fa8f2fcb24cd7eb0f44e3fc7e513e4ed5a620.zip |
Adding missing init scripts for vboxwebsrv
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation/virtualbox-ose/files')
-rw-r--r-- | app-emulation/virtualbox-ose/files/vboxwebsrv-confd | 18 | ||||
-rw-r--r-- | app-emulation/virtualbox-ose/files/vboxwebsrv-initd | 24 |
2 files changed, 42 insertions, 0 deletions
diff --git a/app-emulation/virtualbox-ose/files/vboxwebsrv-confd b/app-emulation/virtualbox-ose/files/vboxwebsrv-confd new file mode 100644 index 000000000000..157d26ec6cbd --- /dev/null +++ b/app-emulation/virtualbox-ose/files/vboxwebsrv-confd @@ -0,0 +1,18 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/files/vboxwebsrv-confd,v 1.1 2009/06/09 18:20:45 patrick Exp $ + +# The host to bind to (defaults to "localhost"). +VBOXWEBSRV_HOST="localhost" + +# Which port to on the host (defaults to 18083). +VBOXWEBSRV_PORT="18083" + +# Session timeout, in seconds. (defaults to 20). +VBOXWEBSRV_TIMEOUT=20 + +# The interval in which the webservice checks for +# timed-out clients, in seconds. Normally does not +# need to be changed (defaults to 5). +VBOXWEBSRV_INTERVAL=5 + diff --git a/app-emulation/virtualbox-ose/files/vboxwebsrv-initd b/app-emulation/virtualbox-ose/files/vboxwebsrv-initd new file mode 100644 index 000000000000..7131a74aae24 --- /dev/null +++ b/app-emulation/virtualbox-ose/files/vboxwebsrv-initd @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/files/vboxwebsrv-initd,v 1.1 2009/06/09 18:20:45 patrick Exp $ + +depend() { + need net +} + +start() { + #checkconfig || return $? + + ebegin "Starting VirtualBox WebService" + start-stop-daemon --start --quiet --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 --quiet --pidfile /var/run/vboxwebsrv.pid + eend $? +} |