Changeset 146 for trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/files/usr/sbin/dispatch.sh
- Timestamp:
- Oct 9, 2007, 2:27:21 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/files/usr/sbin/dispatch.sh
r141 r146 11 11 12 12 ACTION=$(echo "$0" | awk -F'.' '{print $2}') 13 MACHINE="$1" 13 ORIGMACHINE="$1" 14 MACHINE="d_$ORIGMACHINE" 14 15 15 16 case "$ACTION" in 16 17 list|vcpu-list|destroy|create|uptime|shutdown) 17 18 xm "$ACTION" "$MACHINE" 18 exit 019 19 ;; 20 20 reboot-with-cdrom) 21 21 xm shutdown "$MACHINE" 22 xm create sipb-database machine_name="$ MACHINE" cdrom_image="$2"22 xm create sipb-database machine_name="$ORIGMACHINE" cdrom_image="$2" 23 23 ;; 24 24 reboot) 25 25 if [ -n "$2" ]; then 26 /usr/sbin/dispatch.reboot-with-cdrom.sh "$ 1" "$2" &26 /usr/sbin/dispatch.reboot-with-cdrom.sh "$ORIGMACHINE" "$2" & 27 27 else 28 28 xm reboot "$MACHINE"
Note: See TracChangeset
for help on using the changeset viewer.