Ignore:
Timestamp:
Feb 14, 2009, 6:13:55 PM (15 years ago)
Author:
iannucci
Message:

Modified invirt-availability and invirt-vmcontrol to stat /etc/invirt/nocreate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-remote/host/usr/sbin/invirt-vmcontrol

    r2097 r2113  
    2323    install|create)
    2424        shift; shift;
     25        if [ -f "/etc/invirt/nocreate" ]; then
     26                echo "Host $HOSTNAME is currently refusing VM creation." && exit 2
     27        fi
    2528        xm list "$MACHINE" >/dev/null 2>/dev/null && echo "$MACHINE already exists" && exit 1
    2629        if [ "$ACTION" = "install" ]; then
Note: See TracChangeset for help on using the changeset viewer.