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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libbrand/dtd/brand.dtd.1
          +++ new/usr/src/lib/libbrand/dtd/brand.dtd.1
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  17   17   If applicable, add the following below this CDDL HEADER, with the
  18   18   fields enclosed by brackets "[]" replaced with your own identifying
  19   19   information: Portions Copyright [yyyy] [name of copyright owner]
  20   20  
  21   21   CDDL HEADER END
  22   22  
  23   23   Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24  
  25   25   DO NOT EDIT THIS FILE.
       26 +
       27 + Copyright 2014 Nexenta Systems, Inc. All rights reserved.
  26   28  -->
  27   29  
  28   30  <!--
  29   31    verify_cfg
  30   32  
  31   33      Identifies the program to be invoked by zonecfg to verify that the
  32   34      zone's configuration is legal, and that all the configured devices,
  33   35      attributes, etc. are legal for this brand.
  34   36  
  35   37      The program is called with a single argument: the path to a file
↓ open down ↓ 123 lines elided ↑ open up ↑
 159  161        %z        Name of zone
 160  162        %R        Zonepath of zone
 161  163        Additional arguments, if any, are appended.
 162  164  
 163  165      It has no attributes.
 164  166  -->
 165  167  <!ELEMENT halt  (#PCDATA) >
 166  168  <!ATTLIST halt>
 167  169  
 168  170  <!--
      171 +  shutdown
      172 +
      173 +    This is a program which gets run by zoneadmd when a zone is being
      174 +    shutdown gracefully. Currently only asynchronous mode is supported.
      175 +
      176 +    If this program succeeds it should not generate any output. If this
      177 +    program returns an error, any output generated by the program will be
      178 +    sent to the zoneadmd message log.
      179 +
      180 +    The following replacements are performed:
      181 +
      182 +      %z        Name of zone
      183 +      %R        Zonepath of zone
      184 +      Additional arguments, if any, are appended.
      185 +
      186 +    It has no attributes.
      187 +-->
      188 +<!ELEMENT shutdown      (#PCDATA) >
      189 +<!ATTLIST shutdown>
      190 +
      191 +<!--
 169  192    modname
 170  193  
 171  194      Path to the kernel module that implements the kernel-level
 172  195      functionality of the brand.
 173  196  
 174  197      It has no attributes.
 175  198  -->
 176  199  <!ELEMENT modname       (#PCDATA) >
 177  200  <!ATTLIST modname>
 178  201  
↓ open down ↓ 421 lines elided ↑ open up ↑
 600  623      The toplevel container for a brand configuration.
 601  624  
 602  625      Its attributes are
 603  626  
 604  627        name      The name of the brand.  This must match the name of the
 605  628                  directory in which the configuration file is stored.
 606  629  -->
 607  630  
 608  631  <!ELEMENT brand         (modname?, initname, login_cmd, forcedlogin_cmd,
 609  632                          user_cmd, install,
 610      -                        installopts?, boot?, sysboot?, halt?, verify_cfg?,
 611      -                        verify_adm?, postattach?, postclone?, postinstall?,
 612      -                        predetach?, attach?, detach?, clone?,
      633 +                        installopts?, boot?, sysboot?, halt?, shutdown?,
      634 +                        verify_cfg?, verify_adm?, postattach?, postclone?,
      635 +                        postinstall?, predetach?, attach?, detach?, clone?,
 613  636                          presnap?, postsnap?, validatesnap?,
 614  637                          preuninstall?, uninstall?,
 615  638                          prestatechange?, poststatechange?, query?,
 616  639                          privilege+)>
 617  640  
 618  641  <!ATTLIST brand         name            CDATA #REQUIRED>
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX