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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/brand/ipkg/zone/config.xml
          +++ new/usr/src/lib/brand/ipkg/zone/config.xml
↓ 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 + Copyright 2014 Nexenta Systems, Inc. All rights reserved.
  26   27  -->
  27   28  
  28   29  <!DOCTYPE brand PUBLIC "-//Sun Microsystems Inc//DTD Brands//EN"
  29   30      "file:///usr/share/lib/xml/dtd/brand.dtd.1">
  30   31  
  31   32  <brand name="ipkg">
  32   33          <modname></modname>
  33   34  
  34   35          <initname>/sbin/init</initname>
  35   36          <login_cmd>/usr/bin/login -z %Z %u</login_cmd>
  36   37          <forcedlogin_cmd>/usr/bin/login -z %Z -f %u</forcedlogin_cmd>
  37   38          <user_cmd>/usr/bin/getent passwd %u</user_cmd>
  38   39  
  39   40          <!-- We may not be able to do the create in pkg(1) proper. -->
  40   41          <install>/usr/lib/brand/ipkg/pkgcreatezone -z %z -R %R</install>
  41   42          <installopts>a:c:d:e:hk:P:p:suv</installopts>
  42   43          <boot></boot>
  43   44          <sysboot>/usr/lib/brand/ipkg/prestate %z %R 2 0</sysboot>
  44   45          <halt></halt>
       46 +        <shutdown>/usr/sbin/shutdown -y -g0 -i5</shutdown>
  45   47          <verify_cfg></verify_cfg>
  46   48          <verify_adm></verify_adm>
  47   49          <postclone></postclone>
  48   50          <postinstall></postinstall>
  49   51          <attach>/usr/lib/brand/ipkg/attach %z %R</attach>
  50   52          <detach>/usr/lib/brand/ipkg/detach -z %z -R %R</detach>
  51   53          <clone>/usr/lib/brand/ipkg/clone -z %z -R %R</clone>
  52   54          <uninstall>/usr/lib/brand/ipkg/uninstall %z %R</uninstall>
  53   55          <prestatechange>/usr/lib/brand/ipkg/prestate %z %R</prestatechange>
  54   56          <poststatechange>/usr/lib/brand/ipkg/poststate %z %R</poststatechange>
↓ open down ↓ 56 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX