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 | b0d8ce5e595b9340026ed8043bbe7744353d8901 (patch) | |
tree | 909e61d48681537dc41c87d39f5fb6a9eab517da /app-emulation/virtualbox-bin | |
parent | Remove old. (diff) | |
download | historical-b0d8ce5e595b9340026ed8043bbe7744353d8901.tar.gz historical-b0d8ce5e595b9340026ed8043bbe7744353d8901.tar.bz2 historical-b0d8ce5e595b9340026ed8043bbe7744353d8901.zip |
Add missing --user parameter. Fixes bug #382141
Diffstat (limited to 'app-emulation/virtualbox-bin')
-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 $? } |