Print this page
12721 would like svcadm disable -c

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1m/svcadm.1m.man.txt
          +++ new/usr/src/man/man1m/svcadm.1m.man.txt
↓ open down ↓ 2 lines elided ↑ open up ↑
   3    3  
   4    4  
   5    5  NAME
   6    6         svcadm - manipulate service instances
   7    7  
   8    8  SYNOPSIS
   9    9         /usr/sbin/svcadm [-S state] [-v] [-Z | -z zone] enable [-rst]
  10   10              [{FMRI | pattern}...]
  11   11  
  12   12  
  13      -       /usr/sbin/svcadm [-S state] [-v] [-Z | -z zone] disable [-st]
  14      -            [{FMRI | pattern}...]
       13 +       /usr/sbin/svcadm [-S state] [-v] [-Z | -z zone] disable
       14 +            [-c -comment] [-st] [{FMRI | pattern}...]
  15   15  
  16   16  
  17   17         /usr/sbin/svcadm [-S state] [-v] [-Z | -z zone] restart [-d]
  18   18              [{FMRI | pattern}...]
  19   19  
  20   20  
  21   21         /usr/sbin/svcadm [-S state] [-v] [-Z | -z zone] refresh
  22   22              [{FMRI | pattern}...]
  23   23  
  24   24  
↓ open down ↓ 73 lines elided ↑ open up ↑
  98   98             service cannot reach these states without administrator
  99   99             intervention.
 100  100  
 101  101             If the -t option is specified, svcadm temporarily enables each
 102  102             service instance. Temporary enable only lasts until reboot. This
 103  103             action requires permission to modify the "restarter_actions"
 104  104             property group of the service instance (see smf_security(5)). By
 105  105             default, enable is persistent across reboot.
 106  106  
 107  107  
 108      -       disable [-st] {FMRI | pattern}...
      108 +       disable [-c comment] [-st] {FMRI | pattern}...
 109  109  
 110  110             Disables the service instance specified by the operands. For each
 111  111             service instance, the assigned restarter will try to bring it to
 112  112             the disabled state.  This action requires permission to modify the
 113  113             "general" property group of the service instance (see
 114  114             smf_security(5)).
 115  115  
 116  116             If the -s option is specified, svcadm disables each service
 117  117             instance and then waits for each service instance to enter the
 118  118             disabled state.  svcadm will return early if it determines that the
 119  119             service cannot reach this state without administrator intervention.
 120  120  
 121  121             If the -t option is specified, svcadm temporarily disables each
 122  122             service instance. Temporary disable only lasts until reboot. This
 123  123             action requires permission to modify the "restarter_actions"
 124  124             property group of the service instance (see smf_security(5)). By
 125  125             default, disable is persistent across reboot.
 126  126  
      127 +           If the -c option is specified, the given free-form comment is
      128 +           recorded in the (temporary) service configuration under the
      129 +           general/comment property.  This can serve as an administrator
      130 +           reason for disabling the service, and is reported by svcs(1).
 127  131  
      132 +
 128  133         restart [-d] {FMRI | pattern}...
 129  134  
 130  135             Requests that the service instances specified by the operands be
 131  136             restarted.  This action requires permission to modify the
 132  137             "restarter_actions" property group of the service instance (see
 133  138             smf_security(5)).
 134  139  
 135  140             This subcommand can restart only those services that are in the
 136  141             online or degraded states, as those states are defined in smf(5).
 137  142  
↓ open down ↓ 148 lines elided ↑ open up ↑
 286  291  
 287  292  
 288  293  
 289  294         However, you can abbreviate the full FMRI as follows:
 290  295  
 291  296  
 292  297           # svcadm restart nfs/server
 293  298  
 294  299  
 295  300  
 296      -       Example 2 Disabling the Standard HTTP Server
      301 +       Example 2 Disabling a service
 297  302  
 298  303  
 299      -       The following command disables the standard HTTP server, using an
 300      -       abbreviated FMRI:
      304 +       The following command synchronously disables a service, using an
      305 +       abbreviated FMRI, and recording a ticket ID as the administrative
      306 +       reason:
 301  307  
 302  308  
 303      -         $ svcadm disable http
      309 +         $ svcadm disable -c "OPS-1000" -s http
 304  310  
 305  311  
 306  312  
 307  313         Example 3 Enabling an Instance and Its Dependent Instances
 308  314  
 309  315  
 310  316         The following command enables the foo:bar instance, and all instances
 311  317         on which it depends:
 312  318  
 313  319  
↓ open down ↓ 91 lines elided ↑ open up ↑
 405  411  
 406  412  
 407  413         Attempts to synchronously enable a service which depends (directly or
 408  414         indirectly) on a file may fail with an exit status indicating that
 409  415         dependencies are unsatisfied if the caller does not have the privileges
 410  416         necessary to search the directory containing the file. This limitation
 411  417         may be removed in a future release.
 412  418  
 413  419  
 414  420  
 415      -                               October 24, 2019                     SVCADM(1M)
      421 +                                 May 11, 2020                       SVCADM(1M)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX