Changeset 1723 for trunk/packages/invirt-remote-host/files/usr/sbin
- Timestamp:
- Nov 20, 2008, 10:46:49 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-remote-host/files/usr/sbin/invirt-vmcontrol
r1397 r1723 18 18 xm "$ACTION" "$MACHINE" 19 19 ;; 20 destroy|shutdown )20 destroy|shutdown|reboot) 21 21 xm "$ACTION" "$MACHINE" 22 22 /usr/sbin/invirt-update-conserver </dev/null >/dev/null 2>&1 & 23 23 ;; 24 install|create |reboot)24 install|create) 25 25 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 31 27 if [ "$ACTION" = "install" ]; then 32 28 xm create invirt-database machine_name="$ORIGMACHINE" installer_options="$(printf '%q ' "$@")"
Note: See TracChangeset
for help on using the changeset viewer.