Changeset 196 for trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/files/usr/sbin/sipb-xen-vmcontrol
- Timestamp:
- Oct 16, 2007, 1:05:30 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/files/usr/sbin/sipb-xen-vmcontrol
r195 r196 1 1 #!/bin/sh 2 # dispatch-ACTION.sh MACHINE2 # sipb-xen-vmcontrol MACHINE ACTION 3 3 # 4 4 # remctl should have already verified that the user is authorized to … … 10 10 # need them for this script. 11 11 12 ACTION=$(echo "$0" | awk -F'.' '{print $2}')13 12 ORIGMACHINE="$1" 13 ACTION="$2" 14 14 MACHINE="d_$ORIGMACHINE" 15 15 16 16 case "$ACTION" in 17 list|vcpu-list|destroy| create|uptime|shutdown)17 list|vcpu-list|destroy|uptime|shutdown) 18 18 xm "$ACTION" "$MACHINE" 19 19 ;; 20 reboot-with-cdrom) 21 xm shutdown "$MACHINE" 22 xm create sipb-database machine_name="$ORIGMACHINE" cdrom_image="$2" 23 ;; 24 reboot) 25 if [ -n "$2" ]; then 26 /usr/sbin/dispatch.reboot-with-cdrom.sh "$ORIGMACHINE" "$2" & 20 reboot|create|vmboot) 21 xm destroy "$MACHINE" 2>/dev/null 22 if [ -n "$3" ]; then 23 xm create sipb-database machine_name="$ORIGMACHINE" cdrom_image="$3" 27 24 else 28 xm reboot "$MACHINE"25 xm create sipb-database machine_name="$ORIGMACHINE" 29 26 fi 30 27 ;;
Note: See TracChangeset
for help on using the changeset viewer.