VirtualBox

Ignore:
Timestamp:
Oct 16, 2012 3:18:28 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
81422
Message:

Autostart/stop: Further work on the stop part

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/vboxautostart-service.sh

    r43365 r43656  
    291291    [ -z "$VBOXAUTOSTART_CONFIG" ] && exit 0
    292292
    293     exit 0
    294 
    295     #begin_msg "Stopping VirtualBox VMs configured for autostop";
    296     #vboxdrvrunning || {
    297     #    fail_msg "VirtualBox kernel module not loaded!"
    298     #    exit 0
    299     #}
    300     #PARAMS="--stop"
    301     #[ -n "$VBOXAUTOSTART_CONFIG" ] && PARAMS="$PARAMS -c $VBOXAUTOSTART_CONFIG"
     293    PARAMS="--stop --config $VBOXAUTOSTART_CONFIG"
    302294
    303295    # prevent inheriting this setting to VBoxSVC
    304     #unset VBOX_RELEASE_LOG_DEST
    305 
    306     #for user in `ls $VBOXAUTOSTART_DB/*.stop`
    307     #do
    308     #    start_daemon `basename $user | sed -ne "s/\(.*\).stop/\1/p"` $binary $PARAMS > /dev/null 2>&1
    309     #done
    310 
    311     #return $RETVAL
     296    unset VBOX_RELEASE_LOG_DEST
     297
     298    for user in `ls $VBOXAUTOSTART_DB/*.stop`
     299    do
     300        start_daemon `basename $user | sed -ne "s/\(.*\).stop/\1/p"` $binary $PARAMS > /dev/null 2>&1
     301    done
     302
     303    return $RETVAL
    312304}
    313305
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette