Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 315413 Details for
Bug 420991
app-emulation/phpvirtualbox - install vboxinit autostart and autosave init script
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
vboxinit-initd
vboxinit-initd (text/plain), 1.11 KB, created by
Balint SZENTE
on 2012-06-15 11:44:02 UTC
(
hide
)
Description:
vboxinit-initd
Filename:
MIME Type:
Creator:
Balint SZENTE
Created:
2012-06-15 11:44:02 UTC
Size:
1.11 KB
patch
obsolete
>#!/sbin/runscript > >description="Controls VirtualBox sessions" > >. /etc/conf.d/vboxwebsrv > >su_command="su - ${VBOXWEBSRV_USER} -c" > >depend() { > need localmount > after bootmisc >} > >start() { > einfo "Starting VirtualBox machines" > eindent > MACHINES=$($su_command "VBoxManage list vms | awk '{ print \$NF }' | sed -e 's/[{}]//g'") > for UUID in $MACHINES; do > STARTUP=$($su_command "VBoxManage getextradata $UUID 'pvbx/startupMode'" | awk '{ print $NF }') > VMNAME=$($su_command "VBoxManage showvminfo $UUID | sed -n '0,/^Name:/s/^Name:[ \t]*//p'") > if [ "${STARTUP}" == "auto" ]; then > ebegin "Starting machine ${VMNAME}" > $su_command "VBoxManage startvm $UUID --type headless" &>> /var/log/vboxinit.log > eend $? > fi > done >} > >stop() { > einfo "Saving VirtualBox machines" > eindent > MACHINES=$($su_command "VBoxManage list runningvms | awk '{ print \$NF }' | sed -e 's/[{}]//g'") > for UUID in $MACHINES; do > VMNAME=$($su_command "VBoxManage showvminfo $UUID | sed -n '0,/^Name:/s/^Name:[ \t]*//p'") > ebegin "Stopping machine ${VMNAME}" > $su_command "VBoxManage controlvm $UUID savestate" &>> /var/log/vboxinit.log > eend $? > done >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 420991
:
315193
|
315195
|
315251
|
315411
| 315413