File: runit-init.8

package info (click to toggle)
runit 2.1.2-9.2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,660 kB
  • ctags: 1,087
  • sloc: ansic: 5,701; sh: 664; makefile: 361
file content (63 lines) | stat: -rw-r--r-- 1,236 bytes parent folder | download | duplicates (3)
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
.TH runit-init 8
.SH NAME
init \- a UNIX process no 1
.SH SYNOPSIS
.B init
[ 0 | 6 ]
.SH DESCRIPTION
.B runit-init
is the first process the kernel starts.
If
.B runit-init
is started as process no 1, it runs and replaces itself with
.BR runit (8).
.P
If
.B runit-init
is started while the system is up, it must be either called as
.B init 0
or
.B init 6\fR:
.TP
.B init 0
tells the Unix process no 1 to shutdown and halt the system.
To signal
.BR runit (8)
the system halt request,
.B runit-init
removes all permissions of the file
.I /run/runit.reboot
(chmod 0), and sets the execute by owner permission of the file
.I /run/runit.stopit
(chmod 100).
Then a CONT signal is sent to
.BR runit (8).
.TP
.B init 6
tells the Unix process no 1 to shutdown and reboot the system.
To signal
.BR runit (8)
the system reboot request,
.B runit-init
sets the execute by owner permission of the files
.I /run/runit.reboot
and
.I /run/runit.stopit
(chmod 100). Then a CONT signal is sent to
.BR runit (8).
.SH EXIT CODES
.B runit-init
returns 111 on error, 0 in all other cases.
.SH SEE ALSO
runit(8),
runsvdir(8),
runsvchdir(8),
sv(8),
runsv(8),
chpst(8),
utmpset(8),
svlogd(8)
.P
http://smarden.org/runit/
.SH AUTHOR
Gerrit Pape <pape@smarden.org>