linamh/app-emulation/virtualbox-bin/files/vboxwebsrv-initd
geos_one 627bfef943 add virtualbox
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@850 6952d904-891a-0410-993b-d76249ca496b
2009-03-10 20:03:45 +00:00

25 lines
750 B
Plaintext

#!/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.3 2008/12/18 12:26:04 flameeyes 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 $?
}