Changeset 146 for trunk/packages/sipb-xen-remctl-auto
- Timestamp:
- Oct 9, 2007, 2:27:21 AM (17 years ago)
- Location:
- trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/files
- Files:
-
- 1 added
- 2 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/files/etc/remctl/conf.d/sipb-xen-web
r132 r146 1 web lvcreate /usr/sbin/sipb-xen-lvcreate /etc/remctl/acl/web 2 web lvremove /usr/sbin/sipb-xen-lvremove /etc/remctl/acl/web 3 web lvrename /usr/sbin/sipb-xen-lvrename /etc/remctl/acl/web 1 web lvcreate /usr/sbin/sipb-xen-lvm /etc/remctl/acl/web 2 web lvremove /usr/sbin/sipb-xen-lvm /etc/remctl/acl/web 3 web lvrename /usr/sbin/sipb-xen-lvm /etc/remctl/acl/web 4 web lvresize /usr/sbin/sipb-xen-lvm /etc/remctl/acl/web 4 5 web vmboot /usr/sbin/sipb-xen-boot /etc/remctl/acl/web 5 6 web register /usr/sbin/remctl-update.sh /etc/remctl/acl/web -
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" -
trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/files/usr/sbin/remctl-update.sh
r132 r146 47 47 } 48 48 49 check_machine_name() 50 { 51 machine="$1" 52 if ! perl -0e 'exit($ARGV[0] !~ /^[A-Za-z0-9][A-Za-z0-9._-]*$/)' -- "$machinename"; then 53 echo "Bad machine name" 54 exit 1 55 fi 56 } 57 49 58 case "$1" in 50 59 moiragroup) … … 77 86 unregister) 78 87 machine="$2" 88 check_machine_name "$machine" 79 89 rm -f "$ACLDIR"/"$machine" 80 90 rm -f "$MACHINEDIR"/"$machine" … … 84 94 oldmachine="$2" 85 95 newmachine="$3" 96 check_machine_name "$oldmachine" 97 check_machine_name "$newmachine" 86 98 mv "$ACLDIR"/"$oldmachine" "$ACLDIR"/"$newmachine" 87 99 rm -f "$MACHINEDIR"/"$oldmachine" … … 90 102 register) 91 103 machine="$2" 92 if [ "$machine" == "Domain-0" ]; then 93 echo "No, you can't control Domain 0" 94 exit 1 95 fi 96 if [ -e /etc/xen/"$machine" ]; then 97 echo "Machine already exists outside database" 98 exit 1 99 fi 104 check_machine_name "$machine" 100 105 if [ -e "$ACLDIR"/"$machine" ]; then 101 106 echo "Machine already registered" -
trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/files/usr/sbin/sipb-xen-listvms
r122 r146 1 1 #!/bin/sh 2 2 3 xm uptime 3 xm uptime | sed -n 's/^d_// p'
Note: See TracChangeset
for help on using the changeset viewer.