Print this page
12721 would like svcadm disable -c

*** 1,12 **** '\" te .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved. ! .\" Copyright 2019 Joyent, Inc. .\" 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. .\" 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. .\" 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] ! .TH SVCADM 1M "Oct 24, 2019" .SH NAME svcadm \- manipulate service instances .SH SYNOPSIS .nf \fB/usr/sbin/svcadm\fR [\fB-S state\fR] [\fB-v\fR] [\fB-Z\fR | \fB-z\fR \fIzone\fR] enable [\fB-rst\fR] --- 1,12 ---- '\" te .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved. ! .\" Copyright 2020 Joyent, Inc. .\" 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. .\" 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. .\" 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] ! .TH SVCADM 1M "May 11, 2020" .SH NAME svcadm \- manipulate service instances .SH SYNOPSIS .nf \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,24 **** [{\fIFMRI\fR | \fIpattern\fR}...] .fi .LP .nf ! \fB/usr/sbin/svcadm\fR [\fB-S state\fR] [\fB-v\fR] [\fB-Z\fR | \fB-z\fR \fIzone\fR] disable [\fB-st\fR] ! [{\fIFMRI\fR | \fIpattern\fR}...] .fi .LP .nf \fB/usr/sbin/svcadm\fR [\fB-S state\fR] [\fB-v\fR] [\fB-Z\fR | \fB-z\fR \fIzone\fR] restart [\fB-d\fR] --- 13,24 ---- [{\fIFMRI\fR | \fIpattern\fR}...] .fi .LP .nf ! \fB/usr/sbin/svcadm\fR [\fB-S state\fR] [\fB-v\fR] [\fB-Z\fR | \fB-z\fR \fIzone\fR] disable ! [\fB-c\fR -\fIcomment\fR] [\fB-st\fR] [{\fIFMRI\fR | \fIpattern\fR}...] .fi .LP .nf \fB/usr/sbin/svcadm\fR [\fB-S state\fR] [\fB-v\fR] [\fB-Z\fR | \fB-z\fR \fIzone\fR] restart [\fB-d\fR]
*** 140,150 **** .RE .sp .ne 2 .na ! \fB\fBdisable\fR [\fB-st\fR] {\fIFMRI\fR | \fIpattern\fR}...\fR .ad .sp .6 .RS 4n Disables the service instance specified by the operands. For each service instance, the assigned restarter will try to bring it to the disabled state. --- 140,150 ---- .RE .sp .ne 2 .na ! \fB\fBdisable\fR [\fB-c\fR \fIcomment\fR] [\fB-st\fR] {\fIFMRI\fR | \fIpattern\fR}...\fR .ad .sp .6 .RS 4n Disables the service instance specified by the operands. For each service instance, the assigned restarter will try to bring it to the disabled state.
*** 159,168 **** --- 159,173 ---- If the \fB-t\fR option is specified, \fBsvcadm\fR temporarily disables each service instance. Temporary disable only lasts until reboot. This action requires permission to modify the "restarter_actions" property group of the service instance (see \fBsmf_security\fR(5)). By default, \fBdisable\fR is persistent across reboot. + .sp + If the \fB-c\fR option is specified, the given free-form comment is recorded + in the (temporary) service configuration under the \fBgeneral/comment\fR + property. This can serve as an administrator reason for disabling the service, + and is reported by \fBsvcs\fR(1). .RE .sp .ne 2 .na
*** 377,396 **** .fi .in -2 .sp .LP ! \fBExample 2 \fRDisabling the Standard HTTP Server .sp .LP ! The following command disables the standard HTTP server, using an abbreviated ! \fIFMRI\fR: .sp .in +2 .nf ! $ svcadm disable http .fi .in -2 .sp .LP --- 382,401 ---- .fi .in -2 .sp .LP ! \fBExample 2 \fRDisabling a service .sp .LP ! The following command synchronously disables a service, using an abbreviated ! \fIFMRI\fR, and recording a ticket ID as the administrative reason: .sp .in +2 .nf ! $ svcadm disable -c "OPS-1000" -s http .fi .in -2 .sp .LP