|
rpm-build |
133ac4 |
.\" A man page for service(8). -*- nroff -*-
|
|
rpm-build |
133ac4 |
.\"
|
|
rpm-build |
133ac4 |
.\" Copyright (C) 2006 Red Hat, Inc. All rights reserved.
|
|
rpm-build |
133ac4 |
.\"
|
|
rpm-build |
133ac4 |
.\" This copyrighted material is made available to anyone wishing to use,
|
|
rpm-build |
133ac4 |
.\" modify, copy, or redistribute it subject to the terms and conditions of the
|
|
rpm-build |
133ac4 |
.\" GNU General Public License v.2.
|
|
rpm-build |
133ac4 |
.\"
|
|
rpm-build |
133ac4 |
.\" This program is distributed in the hope that it will be useful, but WITHOUT
|
|
rpm-build |
133ac4 |
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
rpm-build |
133ac4 |
.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
rpm-build |
133ac4 |
.\" more details.
|
|
rpm-build |
133ac4 |
.\"
|
|
rpm-build |
133ac4 |
.\" You should have received a copy of the GNU General Public License along
|
|
rpm-build |
133ac4 |
.\" with this program; if not, write to the Free Software Foundation, Inc.,
|
|
rpm-build |
133ac4 |
.\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
rpm-build |
133ac4 |
.\"
|
|
rpm-build |
133ac4 |
.\" Author: Miloslav Trmac <mitr@redhat.com>
|
|
rpm-build |
133ac4 |
.TH service 8 "Jan 2006"
|
|
rpm-build |
133ac4 |
|
|
rpm-build |
133ac4 |
.SH NAME
|
|
rpm-build |
133ac4 |
service \- run a System V init script
|
|
rpm-build |
133ac4 |
|
|
rpm-build |
133ac4 |
.SH SYNOPSIS
|
|
rpm-build |
133ac4 |
\fBservice\fR \fISCRIPT\fR \fICOMMAND\fR [\fIOPTIONS\fR]
|
|
rpm-build |
133ac4 |
|
|
rpm-build |
133ac4 |
\fBservice \-\-status\-all\fR
|
|
rpm-build |
133ac4 |
|
|
rpm-build |
133ac4 |
\fBservice\fR \fB\-\-help\fR | \fB\-h\fR | \fB\-\-version\fR
|
|
rpm-build |
133ac4 |
|
|
rpm-build |
133ac4 |
.SH DESCRIPTION
|
|
rpm-build |
133ac4 |
.B service
|
|
rpm-build |
133ac4 |
runs a System V init script in as predictable environment as possible,
|
|
rpm-build |
133ac4 |
removing most environment variables
|
|
rpm-build |
133ac4 |
and with current working directory set to \fB/\fR.
|
|
rpm-build |
133ac4 |
|
|
rpm-build |
133ac4 |
The
|
|
rpm-build |
133ac4 |
.I SCRIPT
|
|
rpm-build |
133ac4 |
parameter specifies a System V init script,
|
|
rpm-build |
133ac4 |
located in \fB/etc/init.d/\fISCRIPT\fR.
|
|
rpm-build |
133ac4 |
The supported values of
|
|
rpm-build |
133ac4 |
.I COMMAND
|
|
rpm-build |
133ac4 |
depend on the invoked script,
|
|
rpm-build |
133ac4 |
.B service
|
|
rpm-build |
133ac4 |
passes
|
|
rpm-build |
133ac4 |
.I COMMAND
|
|
rpm-build |
133ac4 |
and
|
|
rpm-build |
133ac4 |
.I OPTIONS
|
|
rpm-build |
133ac4 |
it to the init script unmodified.
|
|
rpm-build |
133ac4 |
All scripts should support at least the
|
|
rpm-build |
133ac4 |
.B start
|
|
rpm-build |
133ac4 |
and
|
|
rpm-build |
133ac4 |
.B stop
|
|
rpm-build |
133ac4 |
commands.
|
|
rpm-build |
133ac4 |
As a special case, if
|
|
rpm-build |
133ac4 |
.I COMMAND
|
|
rpm-build |
133ac4 |
is \fB\-\-full-restart\fR, the script is run twice, first with the
|
|
rpm-build |
133ac4 |
.B stop
|
|
rpm-build |
133ac4 |
command, then with the
|
|
rpm-build |
133ac4 |
.B start
|
|
rpm-build |
133ac4 |
command.
|
|
rpm-build |
133ac4 |
|
|
rpm-build |
133ac4 |
.B service \-\-status\-all
|
|
rpm-build |
133ac4 |
runs all init scripts, in alphabetical order, with the
|
|
rpm-build |
133ac4 |
.B status
|
|
rpm-build |
133ac4 |
command.
|
|
rpm-build |
133ac4 |
|
|
rpm-build |
133ac4 |
If the init script file does not exist, the script tries to use
|
|
rpm-build |
133ac4 |
.B legacy actions.
|
|
rpm-build |
133ac4 |
If there is no suitable legacy action found and
|
|
rpm-build |
133ac4 |
.I COMMAND
|
|
rpm-build |
133ac4 |
is one of actions specified in LSB Core Specification, input is redirected to the
|
|
rpm-build |
133ac4 |
.B systemctl.
|
|
rpm-build |
133ac4 |
Otherwise the command fails with return code 2.
|
|
rpm-build |
133ac4 |
|
|
rpm-build |
133ac4 |
.SH FILES
|
|
rpm-build |
133ac4 |
.TP
|
|
rpm-build |
133ac4 |
\fB/etc/init.d\fR
|
|
rpm-build |
133ac4 |
The directory containing System V init scripts.
|
|
rpm-build |
133ac4 |
|
|
rpm-build |
133ac4 |
.SH ENVIRONMENT
|
|
rpm-build |
133ac4 |
.TP
|
|
rpm-build |
133ac4 |
\fBLANG\fR, \fBTERM\fR
|
|
rpm-build |
133ac4 |
The only environment variables passed to the init scripts.
|
|
rpm-build |
133ac4 |
|
|
rpm-build |
133ac4 |
.SH SEE ALSO
|
|
rpm-build |
133ac4 |
.BR chkconfig (8),
|
|
rpm-build |
133ac4 |
.BR ntsysv(8),
|
|
rpm-build |
133ac4 |
.BR systemd (1),
|
|
rpm-build |
133ac4 |
.BR systemctl (8),
|
|
rpm-build |
133ac4 |
.BR systemd.service (5)
|