summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/virtualbox-bin/files')
-rwxr-xr-xapp-emulation/virtualbox-bin/files/virtualbox-bin-1.3.6.initd4
1 files changed, 2 insertions, 2 deletions
diff --git a/app-emulation/virtualbox-bin/files/virtualbox-bin-1.3.6.initd b/app-emulation/virtualbox-bin/files/virtualbox-bin-1.3.6.initd
index 2ac043c..e365d8f 100755
--- a/app-emulation/virtualbox-bin/files/virtualbox-bin-1.3.6.initd
+++ b/app-emulation/virtualbox-bin/files/virtualbox-bin-1.3.6.initd
@@ -42,7 +42,7 @@ checkconfig() {
start() {
checkconfig || return 1
export USER="${VBOX_INSTANCE}"
- export HOME="/opt/VirtualBox"
+ export HOME="/home/${VBOX_INSTANCE}"
export LD_LIBRARY_PATH="/opt/VirtualBox"
ebegin "Starting VirtualBox XPCOM Server (${VBOX_INSTANCE})"
@@ -55,7 +55,7 @@ start() {
start-stop-daemon --start --make-pidfile \
--exec /opt/VirtualBox/VBoxSVC --pidfile /var/run/virtualbox-${VBOX_INSTANCE}.pid \
--name VBoxSVC \
- --chuid "${USER}" \
+ --chuid "${VBOX_INSTANCE}" \
--background
eend $? "Failed to start VirtualBox XPCOM Server (${VBOX_INSTANCE})."
}