-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrc.d.8
More file actions
182 lines (182 loc) · 3.51 KB
/
rc.d.8
File metadata and controls
182 lines (182 loc) · 3.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
'\" t
.\" Title: rc.d
.\" Author: [see the "Authors" section]
.\" Generator: DocBook XSL Stylesheets v1.77.1 <http://docbook.sf.net/>
.\" Date: 10/10/2012
.\" Manual: \ \&
.\" Source: \ \&
.\" Language: English
.\"
.TH "RC\&.D" "8" "10/10/2012" "\ \&" "\ \&"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
rc.d \- Initscripts power tool
.SH "SYNOPSIS"
.sp
\fBrc\&.d <action> [options] [rc [rc] \&...]\fR
.SH "DESCRIPTION"
.sp
The \fBrc\&.d\fR program controls and lists rc scripts on the system\&. An action may be invoked on one or more scripts using \fBrc\&.d action rc1 rc2\&...\fR\&. See Actions below for more information\&. Use \fBrc\&.d list\fR to get the list of all rc scripts on the system\&.
.SH "ACTIONS"
.sp
The actions supported by a rc scripts may be different from script to script, but commonly supported actions include:
.PP
\fBstart\fR
.RS 4
Starts the script if it\(cqs not already running\&.
.RE
.PP
\fBstop\fR
.RS 4
Stops a running script\&.
.RE
.PP
\fBrestart\fR
.RS 4
Restarts a running script\&.
.RE
.sp
More uncommon actions are:
.PP
\fBreload\fR
.RS 4
Signals the script to reload its configuration\&.
.RE
.PP
\fBstatus\fR
.RS 4
Shows the status of the script\&.
.RE
.SH "OPTIONS"
.PP
\fB\-s, \-\-started\fR
.RS 4
Filter to started scripts\&.
.RE
.PP
\fB\-S, \-\-stopped\fR
.RS 4
Filter to stopped scripts\&.
.RE
.PP
\fB\-a, \-\-auto\fR
.RS 4
Filter to auto started scripts\&.
.RE
.PP
\fB\-A, \-\-noauto\fR
.RS 4
Filter to manually started scripts\&.
.RE
.SH "EXAMPLES"
.PP
\fBrc\&.d list\fR
.RS 4
List all scripts\&.
.RE
.PP
\fBrc\&.d list sshd gpm\fR
.RS 4
List only
\fBsshd\fR
and
\fBgpm\fR
scripts\&.
.RE
.PP
\fBrc\&.d list \-\-started gpm\fR
.RS 4
List
\fBgpm\fR
script only if started\&.
.RE
.PP
\fBrc\&.d list \-\-started \-\-auto\fR
.RS 4
List all auto started scripts\&.
.RE
.PP
\fBrc\&.d start sshd gpm\fR
.RS 4
Starts
\fBsshd\fR
and
\fBgpm\fR
scripts\&.
.RE
.PP
\fBrc\&.d start \-\-auto \-\-stopped\fR
.RS 4
Starts all stopped scripts which are started at startup\&.
.RE
.PP
\fBrc\&.d stop crond\fR
.RS 4
Stops the
\fBcrond\fR
script\&.
.RE
.PP
\fBrc\&.d stop \-\-noauto\fR
.RS 4
Stop all script which are not runned at startup
.RE
.PP
\fBrc\&.d restart crond\fR
.RS 4
Restarts the
\fBcrond\fR
script\&.
.RE
.PP
\fBrc\&.d restart \-\-stopped crond\fR
.RS 4
Restarts the
\fBcrond\fR
script only if stopped\&.
.RE
.PP
\fBrc\&.d help\fR
.RS 4
Display help\&.
.RE
.SH "DIRECTORIES"
.PP
\fI/etc/rc\&.d\fR
.RS 4
Directory containing available daemons on the system\&.
.RE
.PP
\fI/usr/lib/initscripts\fR
.RS 4
Directory containing available initscripts plugins\&.
.RE
.SH "AUTHORS"
.sp
.if n \{\
.RS 4
.\}
.nf
Written by Sebastien Luttringer and Dave Reisner\&.
.fi
.if n \{\
.RE
.\}