-
Notifications
You must be signed in to change notification settings - Fork 0
/
rc.8
115 lines (115 loc) · 2.83 KB
/
rc.8
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
.\" rc(8) manual page
.\" See COPYING and COPYRIGHT files for corresponding information.
.Dd September 3, 2023
.Dt RC 8
.Os
.\" ==================================================================
.Sh NAME
.Nm rc ,
.Nm rc.single ,
.Nm rc.multi ,
.Nm rc.modules ,
.Nm rc.local ,
.Nm rc.shutdown ,
.Nm rc.d/
.Nd startup and shutdown scripts
.\" ==================================================================
.Sh SYNOPSIS
.Bd -literal
init(8)
|-- rc
| `-- rc.modules
|-- rc.single
|-- rc.multi
| |-- rc.d/
| `-- rc.local
`-- rc.shutdown
.Ed
.\" ==================================================================
.Sh DESCRIPTION
.Nm rc
is the command script which controls the system boot, and is invoked
by
.Xr init 8
as part of init process.
.Pp
.Nm rc.single
is the command script which controls what to do in single-user mode.
.Pp
.Nm rc.multi
is the command script which controls what to do in multi-user mode.
.Pp
.Nm rc.modules
is the command script to which local kernel module initialization
actions can be added.
It is (nearly) the last thing invoked by
.Nm rc
during system boot.
.Pp
.Nm rc.local
is the command script to which local boot-time actions can be added.
It is (nearly) the last thing invoked by
.Nm rc.multi
during a normal boot.
.Pp
.Nm rc.shutdown
is the command script which shuts down various services, and is
invoked by
.Xr shutdown 8
as part of the process of shutting down the system.
.Pp
.Nm rc.d/
is the directory which contains various
.Xr sh 1p
scripts, one for each service, which are called by
.Nm rc.multi
at startup,
.Nm rc.shutdown
at shutdown, and as necessary during system operation to stop, start,
restart, reload or otherwise control the service.
.\" ==================================================================
.Sh FILES
.Bl -tag -width "/etc/rc.shutdown" -compact
.It Pa /etc/rc
System boot script.
.It Pa /etc/rc.single
Single-User startup script.
.It Pa /etc/rc.multi
Multi-User startup script.
.It Pa /etc/rc.modules
Module initialization script.
.It Pa /etc/rc.local
Local multi-user startup script.
.It Pa /etc/rc.shutdown
System shutdown script.
.It Pa /etc/rc.conf
System boot configuration file.
.It Pa /etc/rc.d/
Directory containing control scripts for each service.
.El
.\" ==================================================================
.Sh SEE ALSO
.Xr rc.conf 5 ,
.Xr init 8 ,
.Xr reboot 8 ,
.Xr shutdown 8
.\" ==================================================================
.Sh AUTHORS
.An -nosplit
The original implementation of
.Nm rc
scripts was done by
.An Per Lidén Aq Mt [email protected] ,
the author of
.Lk http://crux.nu CRUX ,
as part of
.Dq rc
port, and was maintained for years (and still maintaining) by CRUX
team.
.Pp
This implementation was extensively re-worked for
.Lk https://zeppe\-lin.github.io Zeppe-Lin
by
.An Alexandr Savca Aq Mt [email protected] .
.\" vim: cc=72 tw=70
.\" End of file.