-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathsuper.8
More file actions
39 lines (39 loc) · 1.26 KB
/
super.8
File metadata and controls
39 lines (39 loc) · 1.26 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
.TH super 8
'''
.SH NAME
\fBsuper\fR \- top-level process supervisor
'''
.SH DESCRIPTION
\fBsuper\fR runs as PID 1 for most of the system's uptime, spawning
and monitoring a set of child processes. Whenever a spawned process
dies, \fBsuper\fR attempts to re-spawn it.
.P
The list of services to run is just a list of files in a pre-defined
directory /etc/rc; \fBsuper\fR tries to \fBexecve\fR(2) each file in
a spawned child process.
'''
.SH USAGE
During system startup, the initial PID 1 (typically \fBinit\fR(8))
should exec into \fBsuper\fR, which then will run until commanded to
shutdown. Once commanded, \fBsuper\fR stops all services and execs into
\fB/sbin/reboot\fR(8) which should be available.
.P
User interaction with \fBsuper\fR happens via its control socket.
See \fBsvc\fR(8).
.P
For most services, the files in /etc/rc should be executable scripts
setting up process environment and exec-ing their respective commands.
'''
.SH NOTES
\fBsuper\fR passes its credentials and environment to child processes
unchanged. In most cases child processes should drop extra privileges
immediately.
'''
.SH FILES
.IP "/etc/super" 4
Directory containing services to spawn.
.IP "/run/ctrl/super" 4
Control socket.
'''
.SH SEE ALSO
\fBsvc\fR(8), \fBmsh\fR(1), \fBinit\fR(8), \fBreboot\fR(8).