Ignore:
Timestamp:
Mar 16, 2009, 9:27:10 PM (16 years ago)
Author:
price
Message:

accept /etc/invirt/{nolvm,nocreate} on remote-server

Location:
trunk/packages/invirt-remote
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-remote/debian/changelog

    r2255 r2256  
    22
    33  * Let invirt-remote-proxy know all the possible subcommands.
    4 
    5  -- Greg Price <price@mit.edu>  Mon, 16 Mar 2009 21:15:38 -0400
     4  * Accept /etc/invirt/{nocreate,nolvm} on remote-server.
     5
     6 -- Greg Price <price@mit.edu>  Mon, 16 Mar 2009 21:22:13 -0400
    67
    78invirt-remote (0.3.9) unstable; urgency=low
  • trunk/packages/invirt-remote/server/usr/sbin/invirt-remote-proxy

    r2255 r2256  
    2020        invirt-remote-availability "$@" ;;
    2121    web/lvcreate | web/lvremove | web/lvrename | web/lvresize )
     22        if [ -f "/etc/invirt/nolvm" ]; then
     23            echo "LVM operations are temporarily disabled for maintenance, sorry."
     24            exit 2
     25        fi
    2226        remctl "$(invirt-getconf hosts.0.hostname)" remote "$TYPE" "$SERVICE" "$@" ;;
    2327    control/help )
    2428        invirt-remctl-help ;;
    2529    control/create|control/install )
     30        if [ -f "/etc/invirt/nocreate" ]; then
     31            echo "Booting VMs is temporarily disabled for maintenance, sorry."
     32            exit 2
     33        fi
    2634        invirt-remote-create "$SERVICE" "$MACHINE" "$@" ;;
    2735    control/listhost|control/list-host )
Note: See TracChangeset for help on using the changeset viewer.