aboutsummaryrefslogtreecommitdiffstats
path: root/service.8
diff options
context:
space:
mode:
authorMiloslav Trmac <mitr@volny.cz>2006-01-19 16:32:08 +0000
committerMiloslav Trmac <mitr@volny.cz>2006-01-19 16:32:08 +0000
commita4d0e63d990ec76c1afdc87216e29519671b3581 (patch)
tree8e7db424ce5060487efd0442202802334938a954 /service.8
parent896ee821f3827f65a5824d3bb8c054b348306102 (diff)
downloadinitscripts-a4d0e63d990ec76c1afdc87216e29519671b3581.tar
initscripts-a4d0e63d990ec76c1afdc87216e29519671b3581.tar.gz
initscripts-a4d0e63d990ec76c1afdc87216e29519671b3581.tar.bz2
initscripts-a4d0e63d990ec76c1afdc87216e29519671b3581.tar.xz
initscripts-a4d0e63d990ec76c1afdc87216e29519671b3581.zip
Add service(8) man page (#44857).
Diffstat (limited to 'service.8')
-rw-r--r--service.880
1 files changed, 80 insertions, 0 deletions
diff --git a/service.8 b/service.8
new file mode 100644
index 00000000..eb250379
--- /dev/null
+++ b/service.8
@@ -0,0 +1,80 @@
+.\" A man page for service(8). -*- nroff -*-
+.\"
+.\" Copyright (C) 2005 Red Hat, Inc. All rights reserved.
+.\"
+.\" This copyrighted material is made available to anyone wishing to use,
+.\" modify, copy, or redistribute it subject to the terms and conditions of the
+.\" GNU General Public License v.2.
+.\"
+.\" This program is distributed in the hope that it will be useful, but WITHOUT
+.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+.\" more details.
+.\"
+.\" You should have received a copy of the GNU General Public License along
+.\" with this program; if not, write to the Free Software Foundation, Inc.,
+.\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+.\"
+.\" Author: Miloslav Trmac <mitr@redhat.com>
+.TH service 8 "Jan 2005"
+
+.SH NAME
+service \- run a System V init script
+
+.SH SYNOPSIS
+\fBservice\fR \fISCRIPT\fR \fICOMMAND\fR [\fIOPTIONS\fR]
+
+\fBservice \-\-status\-all\fR
+
+\fBservice\fR \fB\-\-help\fR | \fB\-h\fR | \fB\-\-version\fR
+
+.SH DESCRIPTION
+.B service
+runs a System V init script in as predictable environment as possible,
+removing most environment variables
+and with current working directory set to \fB/\fR.
+
+The
+.I SCRIPT
+parameter specifies a System V init script,
+located in \fB/etc/init.d/\fISCRIPT\fR.
+The supported values of
+.I COMMAND
+depend on the invoked script,
+.B service
+passes
+.I COMMAND
+and
+.I OPTIONS
+it to the init script unmodified.
+All scripts should support at least the
+.B start
+and
+.B stop
+commands.
+As a special case, if
+.I COMMAND
+is \fB\-\-full-restart\fR, the script is run twice, first with the
+.B stop
+command, then with the
+.B start
+command.
+
+.B service \-\-status\-all
+runs all init scripts, in alphabetical order, with the
+.B status
+command.
+
+.SH FILES
+.TP
+\fB/etc/init.d\fR
+The directory containing System V init scripts.
+
+.SH ENVIRONMENT
+.TP
+\fBLANG\fR, \fBTERM\fR
+The only environment variables passed to the init scripts.
+
+.SH SEE ALSO
+.BR chkconfig (8),
+.BR ntsysv(8)