VirtualBox

Changeset 42338 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 24, 2012 8:05:34 AM (12 years ago)
Author:
vboxsync
Message:

Autostart/Linux: Cleanups and bugfixes for the autostart init script

File:
1 edited

Legend:

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

    r41999 r42338  
    276276        exit 0
    277277    }
    278     PARAMS="--background --start"
    279     [ -n "$VBOXAUTOSTART_CONFIG" ] && PARAMS="$PARAMS -c $VBOXAUTOSTART_CONFIG"
     278    PARAMS="--background --start --config $VBOXAUTOSTART_CONFIG"
    280279
    281280    # prevent inheriting this setting to VBoxSVC
     
    284283    for user in `ls $VBOXAUTOSTART_DB/*.start`
    285284    do
    286         start_daemon `echo $user | sed -ne "s/\(.*\).start/\1/p"` $binary $PARAMS > /dev/null 2>&1
     285        start_daemon `basename $user | sed -ne "s/\(.*\).start/\1/p"` $binary $PARAMS > /dev/null 2>&1
    287286    done
    288287
     
    306305    for user in `ls $VBOXAUTOSTART_DB/*.stop`
    307306    do
    308         start_daemon `echo $user | sed -ne "s/\(.*\).stop/\1/p"` $binary $PARAMS > /dev/null 2>&1
     307        start_daemon `basename $user | sed -ne "s/\(.*\).stop/\1/p"` $binary $PARAMS > /dev/null 2>&1
    309308    done
    310309
     
    319318    stop
    320319    ;;
    321 restart)
    322     ;;
    323 force-reload)
    324     ;;
    325 status)
    326     ;;
    327 setup)
    328     ;;
    329 cleanup)
    330     ;;
    331320*)
    332321    echo "Usage: $0 {start|stop}"
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