Print this page
12721 would like svcadm disable -c

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1m/svcadm.1m
          +++ new/usr/src/man/man1m/svcadm.1m
   1    1  '\" te
   2    2  .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved.
   3      -.\" Copyright 2019 Joyent, Inc.
        3 +.\" Copyright 2020 Joyent, Inc.
   4    4  .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   5    5  .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   6    6  .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   7      -.TH SVCADM 1M "Oct 24, 2019"
        7 +.TH SVCADM 1M "May 11, 2020"
   8    8  .SH NAME
   9    9  svcadm \- manipulate service instances
  10   10  .SH SYNOPSIS
  11   11  .nf
  12   12  \fB/usr/sbin/svcadm\fR [\fB-S state\fR] [\fB-v\fR] [\fB-Z\fR | \fB-z\fR \fIzone\fR] enable [\fB-rst\fR]
  13   13       [{\fIFMRI\fR | \fIpattern\fR}...]
  14   14  .fi
  15   15  
  16   16  .LP
  17   17  .nf
  18      -\fB/usr/sbin/svcadm\fR [\fB-S state\fR] [\fB-v\fR] [\fB-Z\fR | \fB-z\fR \fIzone\fR] disable [\fB-st\fR]
  19      -     [{\fIFMRI\fR | \fIpattern\fR}...]
       18 +\fB/usr/sbin/svcadm\fR [\fB-S state\fR] [\fB-v\fR] [\fB-Z\fR | \fB-z\fR \fIzone\fR] disable
       19 +     [\fB-c\fR -\fIcomment\fR] [\fB-st\fR] [{\fIFMRI\fR | \fIpattern\fR}...]
  20   20  .fi
  21   21  
  22   22  .LP
  23   23  .nf
  24   24  \fB/usr/sbin/svcadm\fR [\fB-S state\fR] [\fB-v\fR] [\fB-Z\fR | \fB-z\fR \fIzone\fR] restart [\fB-d\fR]
  25   25       [{\fIFMRI\fR | \fIpattern\fR}...]
  26   26  .fi
  27   27  
  28   28  .LP
  29   29  .nf
↓ open down ↓ 105 lines elided ↑ open up ↑
 135  135  If the \fB-t\fR option is specified, \fBsvcadm\fR temporarily enables each
 136  136  service instance. Temporary enable only lasts until reboot. This action
 137  137  requires permission to modify the "restarter_actions" property group of the
 138  138  service instance (see \fBsmf_security\fR(5)). By default, \fBenable\fR is
 139  139  persistent across reboot.
 140  140  .RE
 141  141  
 142  142  .sp
 143  143  .ne 2
 144  144  .na
 145      -\fB\fBdisable\fR [\fB-st\fR] {\fIFMRI\fR | \fIpattern\fR}...\fR
      145 +\fB\fBdisable\fR [\fB-c\fR \fIcomment\fR] [\fB-st\fR] {\fIFMRI\fR | \fIpattern\fR}...\fR
 146  146  .ad
 147  147  .sp .6
 148  148  .RS 4n
 149  149  Disables the service instance specified by the operands. For each service
 150  150  instance, the assigned restarter will try to bring it to the disabled state.
 151  151  This action requires permission to modify the "general" property group of the
 152  152  service instance (see \fBsmf_security\fR(5)).
 153  153  .sp
 154  154  If the \fB-s\fR option is specified, \fBsvcadm\fR disables each service
 155  155  instance and then waits for each service instance to enter the disabled state.
 156  156  \fBsvcadm\fR will return early if it determines that the service cannot reach
 157  157  this state without administrator intervention.
 158  158  .sp
 159  159  If the \fB-t\fR option is specified, \fBsvcadm\fR temporarily disables each
 160  160  service instance. Temporary disable only lasts until reboot. This action
 161  161  requires permission to modify the "restarter_actions" property group of the
 162  162  service instance (see \fBsmf_security\fR(5)). By default, \fBdisable\fR is
 163  163  persistent across reboot.
      164 +.sp
      165 +If the \fB-c\fR option is specified, the given free-form comment is recorded
      166 +in the (temporary) service configuration under the \fBgeneral/comment\fR
      167 +property.  This can serve as an administrator reason for disabling the service,
      168 +and is reported by \fBsvcs\fR(1).
 164  169  .RE
 165  170  
 166  171  .sp
 167  172  .ne 2
 168  173  .na
 169  174  \fB\fBrestart\fR [\fB-d\fR] {\fIFMRI\fR | \fIpattern\fR}...\fR
 170  175  .ad
 171  176  .sp .6
 172  177  .RS 4n
 173  178  Requests that the service instances specified by the operands be restarted.
↓ open down ↓ 198 lines elided ↑ open up ↑
 372  377  
 373  378  .sp
 374  379  .in +2
 375  380  .nf
 376  381  # svcadm restart nfs/server
 377  382  .fi
 378  383  .in -2
 379  384  .sp
 380  385  
 381  386  .LP
 382      -\fBExample 2 \fRDisabling the Standard HTTP Server
      387 +\fBExample 2 \fRDisabling a service
 383  388  .sp
 384  389  .LP
 385      -The following command disables the standard HTTP server, using an abbreviated
 386      -\fIFMRI\fR:
      390 +The following command synchronously disables a service, using an abbreviated
      391 +\fIFMRI\fR, and recording a ticket ID as the administrative reason:
 387  392  
 388  393  .sp
 389  394  .in +2
 390  395  .nf
 391      -$ svcadm disable http
      396 +$ svcadm disable -c "OPS-1000" -s http
 392  397  .fi
 393  398  .in -2
 394  399  .sp
 395  400  
 396  401  .LP
 397  402  \fBExample 3 \fREnabling an Instance and Its Dependent Instances
 398  403  .sp
 399  404  .LP
 400  405  The following command enables the \fBfoo:bar\fR instance, and all instances on
 401  406  which it depends:
↓ open down ↓ 139 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX