Print this page
7928 Add support for SMF_EXIT_TEMP_TRANSIENT

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man5/smf_method.5.man.txt
          +++ new/usr/src/man/man5/smf_method.5.man.txt
↓ open down ↓ 171 lines elided ↑ open up ↑
 172  172         service instance is ready to answer requests or is otherwise
 173  173         functional.
 174  174  
 175  175  
 176  176         The following exit status codes are defined in <libscf.h> and in the
 177  177         shell support file.
 178  178  
 179  179  
 180  180  
 181  181  
 182      -       SMF_EXIT_OK           0          Method exited, performing its operation successfully.
 183      -       SMF_EXIT_ERR_FATAL    95         Method failed fatally and is unrecoverable without administrative intervention.
 184      -       SMF_EXIT_ERR_CONFIG   96         Unrecoverable configuration error. A common condition that returns this exit status is the absence of required configuration files for an enabled service instance.
 185      -       SMF_EXIT_ERR_NOSMF    99         Method has been mistakenly invoked outside the smf(5) facility. Services that depend on smf(5) capabilities should exit with this status value.
 186      -       SMF_EXIT_ERR_PERM     100        Method requires a form of permission such as file access, privilege, authorization, or other credential that is not available when invoked.
 187      -       SMF_EXIT_ERR_OTHER    non-zero   Any non-zero exit status from a method is treated as an unknown error. A series of unknown errors can be diagnosed as a fault by the restarter or on behalf of the restarter.
      182 +       SMF_EXIT_OK               0          Method exited, performing its operation successfully.
      183 +       SMF_EXIT_ERR_FATAL        95         Method failed fatally and is unrecoverable without administrative intervention.
      184 +       SMF_EXIT_ERR_CONFIG       96         Unrecoverable configuration error. A common condition that returns this exit status is the absence of required configuration files for an enabled service instance.
      185 +       SMF_EXIT_ERR_NOSMF        99         Method has been mistakenly invoked outside the smf(5) facility. Services that depend on smf(5) capabilities should exit with this status value.
      186 +       SMF_EXIT_ERR_PERM         100        Method requires a form of permission such as file access, privilege, authorization, or other credential that is not available when invoked.
      187 +       SMF_EXIT_TEMP_TRANSIENT   101        Method that is normally non-transient is temporarily transient.  This is not an error condition and a service returning this value will not be restarted.
      188 +       SMF_EXIT_ERR_OTHER        non-zero   Any non-zero exit status from a method is treated as an unknown error. A series of unknown errors can be diagnosed as a fault by the restarter or on behalf of the restarter.
 188  189  
 189  190  
 190  191  
 191  192         Use of a precise exit code allows the responsible restarter to
 192  193         categorize an error response as likely to be intermittent and worth
 193  194         pursuing restart or permanent and request administrative intervention.
 194  195  
 195  196     Timeouts
 196  197         Each method can have an independent timeout, given in seconds. The
 197  198         choice of a particular timeout should be based on site expectations for
↓ open down ↓ 199 lines elided ↑ open up ↑
 397  398         The present version of smf(5) does not support multiple repositories.
 398  399  
 399  400  
 400  401         When a service is configured to be started as root but with privileges
 401  402         different from limit_privileges, the resulting process is privilege
 402  403         aware.  This can be surprising to developers who expect seteuid(<non-
 403  404         zero UID>) to reduce privileges to basic or less.
 404  405  
 405  406  
 406  407  
 407      -                                 June 6, 2016                    SMF_METHOD(5)
      408 +                                 March 2, 2017                   SMF_METHOD(5)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX