source: projects/initscripts/trunk/service.8 @ 1108

Revision 1108, 2.0 KB checked in by daisuke, 14 years ago (diff)

import initscripts-8.90.6 from internal cvs repository

Line 
1.\" A man page for service(8). -*- nroff -*-
2.\"
3.\" Copyright (C) 2006 Red Hat, Inc. All rights reserved.
4.\"
5.\" This copyrighted material is made available to anyone wishing to use,
6.\" modify, copy, or redistribute it subject to the terms and conditions of the
7.\" GNU General Public License v.2.
8.\"
9.\" This program is distributed in the hope that it will be useful, but WITHOUT
10.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12.\" more details.
13.\"
14.\" You should have received a copy of the GNU General Public License along
15.\" with this program; if not, write to the Free Software Foundation, Inc.,
16.\" 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17.\"
18.\" Author: Miloslav Trmac <mitr@redhat.com>
19.TH service 8 "Jan 2006"
20
21.SH NAME
22service \- run a System V init script
23
24.SH SYNOPSIS
25\fBservice\fR \fISCRIPT\fR \fICOMMAND\fR [\fIOPTIONS\fR]
26
27\fBservice \-\-status\-all\fR
28
29\fBservice\fR \fB\-\-help\fR | \fB\-h\fR | \fB\-\-version\fR
30
31.SH DESCRIPTION
32.B service
33runs a System V init script in as predictable environment as possible,
34removing most environment variables
35and with current working directory set to \fB/\fR.
36
37The
38.I SCRIPT
39parameter specifies a System V init script,
40located in \fB/etc/init.d/\fISCRIPT\fR.
41The supported values of
42.I COMMAND
43depend on the invoked script,
44.B service
45passes
46.I COMMAND
47and
48.I OPTIONS
49it to the init script unmodified.
50All scripts should support at least the
51.B start
52and
53.B stop
54commands.
55As a special case, if
56.I COMMAND
57is \fB\-\-full-restart\fR, the script is run twice, first with the
58.B stop
59command, then with the
60.B start
61command.
62
63.B service \-\-status\-all
64runs all init scripts, in alphabetical order, with the
65.B status
66command.
67
68.SH FILES
69.TP
70\fB/etc/init.d\fR
71The directory containing System V init scripts.
72
73.SH ENVIRONMENT
74.TP
75\fBLANG\fR, \fBTERM\fR
76The only environment variables passed to the init scripts.
77
78.SH SEE ALSO
79.BR chkconfig (8),
80.BR ntsysv(8)
Note: See TracBrowser for help on using the repository browser.