Changeset 1239 for trunk/packages/invirt-remote-host/files/usr
- Timestamp:
- Oct 24, 2008, 10:09:06 PM (16 years ago)
- Location:
- trunk/packages/invirt-remote-host
- Files:
-
- 4 added
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-remote-host/files/usr/sbin/invirt-listvms
r1237 r1239 3 3 import sys 4 4 import time 5 sys.path.insert(0, '/usr/lib/xen-3.1-1/lib/python')6 5 from xen.lowlevel import xs 7 6 -
trunk/packages/invirt-remote-host/files/usr/sbin/invirt-remote
r1237 r1239 1 1 #!/bin/sh 2 # sipb-xen-remote TYPE SERVICE [ARGS...]2 # invirt-remote TYPE SERVICE [ARGS...] 3 3 # 4 4 # We carry out the remctl command proxied to us by the remote-control server. … … 11 11 control) 12 12 # $SERVICE is hostname 13 COMMAND=/usr/sbin/ sipb-xen-vmcontrol13 COMMAND=/usr/sbin/invirt-vmcontrol 14 14 ;; 15 15 web) 16 16 case "$SERVICE" in 17 17 lvcreate|lvremove|lvrename|lvresize) 18 COMMAND=/usr/sbin/ sipb-xen-lvm18 COMMAND=/usr/sbin/invirt-lvm 19 19 ;; 20 20 vmboot) 21 COMMAND=/usr/sbin/ sipb-xen-vmcontrol21 COMMAND=/usr/sbin/invirt-vmcontrol 22 22 ;; 23 23 listvms) 24 COMMAND=/usr/sbin/ sipb-xen-listvms24 COMMAND=/usr/sbin/invirt-listvms 25 25 ;; 26 26 info) … … 39 39 esac 40 40 41 #echo $COMMAND "$SERVICE" "$@"42 41 $COMMAND "$SERVICE" "$@" -
trunk/packages/invirt-remote-host/files/usr/sbin/invirt-vmcontrol
r1237 r1239 1 1 #!/bin/bash 2 # sipb-xen-vmcontrol MACHINE ACTION2 # invirt-vmcontrol MACHINE ACTION 3 3 # 4 4 # remctl should have already verified that the user is authorized to … … 20 20 destroy|shutdown) 21 21 xm "$ACTION" "$MACHINE" 22 /usr/sbin/ sipb-xen-update-conserver </dev/null >/dev/null 2>&1 &22 /usr/sbin/invirt-update-conserver </dev/null >/dev/null 2>&1 & 23 23 ;; 24 24 install|create|reboot) … … 36 36 xm create sipb-database machine_name="$ORIGMACHINE" 37 37 fi 38 (sleep 4; /usr/sbin/ sipb-xen-update-conserver) </dev/null >/dev/null 2>&1 &38 (sleep 4; /usr/sbin/invirt-update-conserver) </dev/null >/dev/null 2>&1 & 39 39 ;; 40 40 list-long)
Note: See TracChangeset
for help on using the changeset viewer.