Print this page
7928 Add support for SMF_EXIT_TEMP_TRANSIENT

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/svc/shell/smf_include.sh
          +++ new/usr/src/cmd/svc/shell/smf_include.sh
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16  # If applicable, add the following below this CDDL HEADER, with the
  17   17  # fields enclosed by brackets "[]" replaced with your own identifying
  18   18  # information: Portions Copyright [yyyy] [name of copyright owner]
  19   19  #
  20   20  # CDDL HEADER END
  21   21  #
  22   22  #
  23   23  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25   25  # Copyright 2015 Nexenta Systems, Inc. All rights reserved.
       26 +# Copyright 2017 RackTop Systems.
  26   27  #
  27   28  
  28   29  smf_present () {
  29   30          [ -r /etc/svc/volatile/repository_door ] && \
  30   31              [ ! -f /etc/svc/volatile/repository_door ]
  31   32  }
  32   33  
  33   34  smf_clear_env () {
  34   35          unset \
  35   36                  SMF_FMRI \
↓ open down ↓ 199 lines elided ↑ open up ↑
 235  236  #   SMF_EXIT_ERR_OTHER, although not defined, encompasses all non-zero
 236  237  #   exit status values.
 237  238  #
 238  239  SMF_EXIT_OK=0
 239  240  SMF_EXIT_ERR_FATAL=95
 240  241  SMF_EXIT_ERR_CONFIG=96
 241  242  SMF_EXIT_MON_DEGRADE=97
 242  243  SMF_EXIT_MON_OFFLINE=98
 243  244  SMF_EXIT_ERR_NOSMF=99
 244  245  SMF_EXIT_ERR_PERM=100
      246 +SMF_EXIT_TEMP_TRANSIENT=101
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX