diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2012-03-16 22:38:49 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2012-03-16 22:38:49 +0000 |
commit | 47a8b704fcf8cb2432db39c921e954f4faa0c1a3 (patch) | |
tree | 02fe8d9b83de6f2bffaee7f9de39b1a4ba2b8d92 /app-emulation/virtualbox-bin/files | |
parent | Add missing --user parameter. Fixes bug #382141 (diff) | |
download | gentoo-2-47a8b704fcf8cb2432db39c921e954f4faa0c1a3.tar.gz gentoo-2-47a8b704fcf8cb2432db39c921e954f4faa0c1a3.tar.bz2 gentoo-2-47a8b704fcf8cb2432db39c921e954f4faa0c1a3.zip |
Add missing --user parameter. Fixes bug #382141
Diffstat (limited to 'app-emulation/virtualbox-bin/files')
-rw-r--r-- | app-emulation/virtualbox-bin/files/vboxwebsrv-confd | 4 | ||||
-rw-r--r-- | app-emulation/virtualbox-bin/files/vboxwebsrv-initd | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/app-emulation/virtualbox-bin/files/vboxwebsrv-confd b/app-emulation/virtualbox-bin/files/vboxwebsrv-confd index 5ca18d55f74f..2c24c124f951 100644 --- a/app-emulation/virtualbox-bin/files/vboxwebsrv-confd +++ b/app-emulation/virtualbox-bin/files/vboxwebsrv-confd @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-bin/files/vboxwebsrv-confd,v 1.2 2008/08/10 14:38:45 jokey Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-bin/files/vboxwebsrv-confd,v 1.3 2012/03/16 22:38:49 hwoarang Exp $ # The host to bind to (defaults to "localhost"). VBOXWEBSRV_HOST="localhost" @@ -16,3 +16,5 @@ VBOXWEBSRV_TIMEOUT=20 # need to be changed (defaults to 5). VBOXWEBSRV_INTERVAL=5 +# User under which vboxwebsrv is running +VBOXWEBSRV_USER="root" diff --git a/app-emulation/virtualbox-bin/files/vboxwebsrv-initd b/app-emulation/virtualbox-bin/files/vboxwebsrv-initd index d61c639e30c5..68ec1146bfce 100644 --- a/app-emulation/virtualbox-bin/files/vboxwebsrv-initd +++ b/app-emulation/virtualbox-bin/files/vboxwebsrv-initd @@ -1,7 +1,7 @@ #!/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.6 2010/01/28 13:11:46 patrick Exp $ +# $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 @@ -11,7 +11,7 @@ start() { #checkconfig || return $? ebegin "Starting VirtualBox WebService" - start-stop-daemon --start --quiet --pidfile /var/run/vboxwebsrv.pid \ + 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 $? @@ -19,6 +19,6 @@ start() { stop() { ebegin "Stopping VirtualBox WebService" - start-stop-daemon --stop --quiet --pidfile /var/run/vboxwebsrv.pid + start-stop-daemon --stop --user ${VBOXWEBSRV_USER} --quiet --pidfile /var/run/vboxwebsrv.pid eend $? } |