aboutsummaryrefslogtreecommitdiff
path: root/rc.d.8.txt
blob: df226d3358e0fa14da088275a5457b18cf2e536b (plain)
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
/////
vim:set ts=4 sw=4 syntax=asciidoc noet:
/////
rc.d(8)
=======

Name
----
rc.d - Initscripts power tool

Synopsis
--------
*rc.d <action> [options] [rc [rc] ...]*

Description
-----------
The *rc.d* program controls and lists rc scripts on the system. An action may be
invoked on one or more scripts using *rc.d action rc1 rc2...*. See <<A,Actions>>
below for more information.
Use *rc.d list* to get the list of all rc scripts on the system.

Actions[[A]]
------------
The actions supported by a rc scripts may be different from script to script, but
commonly supported actions include:

*start*::
	Starts the script if it is not already running.

*stop*::
	Stops a running script.

*restart*::
	Restarts a running script.

More uncommon actions are:

*reload*::
	Signals the script to reload its configuration.

*status*::
	Shows the status of the script.

Options[[O]]
------------
*-s, --started*::
	Filter to started scripts.

*-S, --stopped*::
	Filter to stopped scripts.

*-a, --auto*::
	Filter to auto started scripts.

*-A, --noauto*::
	Filter to manually started scripts.

Examples[[E]]
-------------
*rc.d list*::
	List all scripts.

*rc.d list sshd gpm*::
	List only *sshd* and *gpm* scripts.

*rc.d list --started gpm*::
	List *gpm* script only if started.

*rc.d list --started --auto*::
	List all auto started scripts.

*rc.d start sshd gpm*::
	Starts *sshd* and *gpm* scripts.

*rc.d stop crond*::
	Stops the *crond* script.

*rc.d restart crond*::
	Restarts the *crond* script.

*rc.d restart --stopped crond*::
	Restarts the *crond* script only if stopped.

*rc.d help*::
	Display help.

Directories[[D]]
----------------
'/etc/rc.d'::
	Directory containing available daemons on the system.

'/usr/lib/initscripts'::
	Directory containing available initscripts plugins.

Authors
-------
	Written by Sebastien Luttringer and Dave Reisner.