Print this page
2594 implement graceful shutdown for local zones in zoneadm

@@ -21,10 +21,12 @@
  CDDL HEADER END
 
  Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
 
  DO NOT EDIT THIS FILE.
+
+ Copyright 2014 Nexenta Systems, Inc. All rights reserved.
 -->
 
 <!--
   verify_cfg
 

@@ -164,10 +166,31 @@
 -->
 <!ELEMENT halt  (#PCDATA) >
 <!ATTLIST halt>
 
 <!--
+  shutdown
+
+    This is a program which gets run by zoneadmd when a zone is being
+    shutdown gracefully. Currently only asynchronous mode is supported.
+
+    If this program succeeds it should not generate any output. If this
+    program returns an error, any output generated by the program will be
+    sent to the zoneadmd message log.
+
+    The following replacements are performed:
+
+      %z        Name of zone
+      %R        Zonepath of zone
+      Additional arguments, if any, are appended.
+
+    It has no attributes.
+-->
+<!ELEMENT shutdown      (#PCDATA) >
+<!ATTLIST shutdown>
+
+<!--
   modname
 
     Path to the kernel module that implements the kernel-level
     functionality of the brand.
 

@@ -605,13 +628,13 @@
                 directory in which the configuration file is stored.
 -->
 
 <!ELEMENT brand         (modname?, initname, login_cmd, forcedlogin_cmd,
                         user_cmd, install,
-                        installopts?, boot?, sysboot?, halt?, verify_cfg?,
-                        verify_adm?, postattach?, postclone?, postinstall?,
-                        predetach?, attach?, detach?, clone?,
+                        installopts?, boot?, sysboot?, halt?, shutdown?,
+                        verify_cfg?, verify_adm?, postattach?, postclone?,
+                        postinstall?, predetach?, attach?, detach?, clone?,
                         presnap?, postsnap?, validatesnap?,
                         preuninstall?, uninstall?,
                         prestatechange?, poststatechange?, query?,
                         privilege+)>