Print this page
Bring back LX zones.

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/zoneadm/svc-zones
          +++ new/usr/src/cmd/zoneadm/svc-zones
↓ open down ↓ 23 lines elided ↑ open up ↑
  24   24  
  25   25  . /lib/svc/share/smf_include.sh
  26   26  
  27   27  #
  28   28  # Return a list of running, non-global zones for which a shutdown via
  29   29  # "/sbin/init 0" may work (typically only Solaris zones.)
  30   30  #
  31   31  shutdown_zones()
  32   32  {
  33   33          zoneadm list -p | nawk -F: '{
  34      -                if ($2 != "global") {
       34 +                if (($5 != "lx") && ($2 != "global")) {
  35   35                          print $2
  36   36                  }
  37   37          }'
  38   38  }
  39   39  
  40   40  [ ! -x /usr/sbin/zoneadm ] && exit 0    # SUNWzoneu not installed
  41   41  
  42   42  if [ -z "$SMF_FMRI" ]; then
  43   43          echo "this script can only be invoked by smf(5)"        
  44   44          exit $SMF_EXIT_ERR_NOSMF
↓ open down ↓ 131 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX