diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2012-03-16 22:36:03 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2012-03-16 22:36:03 +0000 |
commit | b7a1671de5a6c6f976276b5d125f78854d8e4853 (patch) | |
tree | 77a23e3d7dc8a704238e5977ca5dbb57e1976d24 /app-emulation/virtualbox | |
parent | Remove old. (diff) | |
download | gentoo-2-b7a1671de5a6c6f976276b5d125f78854d8e4853.tar.gz gentoo-2-b7a1671de5a6c6f976276b5d125f78854d8e4853.tar.bz2 gentoo-2-b7a1671de5a6c6f976276b5d125f78854d8e4853.zip |
Add missing --user parameter. Fixes bug #382141
Diffstat (limited to 'app-emulation/virtualbox')
-rw-r--r-- | app-emulation/virtualbox/files/vboxwebsrv-confd | 4 | ||||
-rw-r--r-- | app-emulation/virtualbox/files/vboxwebsrv-initd | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/app-emulation/virtualbox/files/vboxwebsrv-confd b/app-emulation/virtualbox/files/vboxwebsrv-confd index 92d61e9eee81..b48b2218f9c0 100644 --- a/app-emulation/virtualbox/files/vboxwebsrv-confd +++ b/app-emulation/virtualbox/files/vboxwebsrv-confd @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/files/vboxwebsrv-confd,v 1.1 2011/01/06 22:47:33 polynomial-c Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/files/vboxwebsrv-confd,v 1.2 2012/03/16 22:36:03 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/files/vboxwebsrv-initd b/app-emulation/virtualbox/files/vboxwebsrv-initd index d04cdc2bbc54..db4756f92992 100644 --- a/app-emulation/virtualbox/files/vboxwebsrv-initd +++ b/app-emulation/virtualbox/files/vboxwebsrv-initd @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/files/vboxwebsrv-initd,v 1.1 2011/01/06 22:47:34 polynomial-c Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/files/vboxwebsrv-initd,v 1.2 2012/03/16 22:36:03 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 /usr/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 $? } |