Changeset 2533

Show
Ignore:
Timestamp:
04/21/07 16:06:26 (2 years ago)
Author:
dhozac
Message:

Use the state change helper to stop the guest when the last process exits.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/cflags-v13.c

    r2393 r2533  
    6969    // Some pseudo flags 
    7070  DECL("secure",        VC_VXF_HIDE_NETIF), 
    71   DECL("default",       VC_VXF_VIRT_UPTIME), 
     71  DECL("default",       VC_VXF_VIRT_UPTIME|VC_VXF_SC_HELPER), 
    7272 
    7373    // Aliases for the legacy flags 
  • trunk/scripts/vshelper

    r2508 r2533  
    8181                    ;; 
    8282                (restart2)      ;; 
     83                (shutdown) 
     84                    logging $"Cleaning up after vserver '$VSERVER'" 
     85                    spawn $_VSERVER --defaulttty "$VSERVER" stop 
     86                    ;; 
    8387                (*) 
    8488                    warning $"Unknown action '$ACTION' for vserver '$VSERVER'" 
     
    179183done 
    180184 
    181 vserver_id=$($_VSERVER_INFO "$responsible_xid" ID) || 
     185vserver_id=$($_VSERVER_INFO "$responsible_xid" ID) || test "$ACTION" = "shutdown" || 
    182186    panic $"No responsible vserver found for xid '$responsible_xid' ($XID); aborting..." 
    183187