Changeset 2113 for trunk/packages/invirt-remote/host/usr
- Timestamp:
- Feb 14, 2009, 6:13:55 PM (16 years ago)
- Location:
- trunk/packages/invirt-remote/host/usr/sbin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-remote/host/usr/sbin/invirt-availability
r2107 r2113 20 20 All math is done in kilobytes for consistency 21 21 Output is in MB 22 23 Bail if /etc/invirt/nocreate exists 22 24 """ 25 try: 26 os.stat('/etc/invirt/nocreate') 27 print 0 28 return 0 29 except OSError: 30 pass 31 23 32 p = Popen(['/usr/sbin/xm', 'info'], stdout=PIPE) 24 33 output = p.communicate()[0] -
trunk/packages/invirt-remote/host/usr/sbin/invirt-vmcontrol
r2097 r2113 23 23 install|create) 24 24 shift; shift; 25 if [ -f "/etc/invirt/nocreate" ]; then 26 echo "Host $HOSTNAME is currently refusing VM creation." && exit 2 27 fi 25 28 xm list "$MACHINE" >/dev/null 2>/dev/null && echo "$MACHINE already exists" && exit 1 26 29 if [ "$ACTION" = "install" ]; then
Note: See TracChangeset
for help on using the changeset viewer.