Ignore:
Timestamp:
Nov 20, 2008, 10:46:49 PM (15 years ago)
Author:
broder
Message:

Use xm reboot instead of a destroy and create to reboot VMs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-remote-host/files/usr/sbin/invirt-vmcontrol

    r1397 r1723  
    1818        xm "$ACTION" "$MACHINE"
    1919        ;;
    20     destroy|shutdown)
     20    destroy|shutdown|reboot)
    2121        xm "$ACTION" "$MACHINE"
    2222        /usr/sbin/invirt-update-conserver </dev/null >/dev/null 2>&1 &
    2323        ;;
    24     install|create|reboot)
     24    install|create)
    2525        shift; shift;
    26         if [ "$ACTION" = "reboot" ]; then
    27             xm destroy "$MACHINE" 2>/dev/null
    28         else
    29             xm list "$MACHINE" >/dev/null 2>/dev/null && echo "$MACHINE already exists" && exit 1
    30         fi
     26        xm list "$MACHINE" >/dev/null 2>/dev/null && echo "$MACHINE already exists" && exit 1
    3127        if [ "$ACTION" = "install" ]; then
    3228            xm create invirt-database machine_name="$ORIGMACHINE" installer_options="$(printf '%q ' "$@")"
Note: See TracChangeset for help on using the changeset viewer.