aboutsummaryrefslogtreecommitdiff
path: root/sinit.8
blob: e9a27e5752a8b91c8f146fe7cb3b9608d03d2475 (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
.Dd December 4, 2014
.Dt SINIT 8 sinit\-VERSION
.Os
.Sh NAME
.Nm sinit
.Nd simple init
.Sh DESCRIPTION
.Nm
is a simple init.  It is configured by modifying
.Dq config.h
and recompiling the code.
.Ss Init sequence
By default
.Nm
will execute
.Dq /bin/rc.init .
You can chain your init scripts together at that point to allow for
single-user and multi-user operation.
.Ss Signal handling
.Nm
will respond to the following signals:
.Bl -tag -width xxxxxxxx
.It USR1
Default action is to initiate the shutdown sequence by
executing
.Dq /bin/rc.shutdown poweroff .
.It INT
Default action is to initiate the reboot sequence by
executing
.Dq /bin/rc.shutdown reboot .
.It CHLD
Reap children.
.El
.Ss General considerations
Running the
.Dq rc.shutdown
script directly is not recommended.  If any
process in your session has stale filesystem references then it is
likely your init scripts will fail to unmount the filesystem cleanly.
It is recommended to signal
.Nm
via a wrapper script.
.Pp
.Nm
does not clear utmp records.  The version of
.Xr getty 8
in ubase clears the utmp entries on the specified tty before it
spawns the given program, usually
.Xr login 1 .
.Pp
.Nm
does not restart
.Xr getty 8
or interact with it in any way.  You will need an external
respawning mechanism to restart it.
.Sh SEE ALSO
.Xr getty 8 ,
.Xr killall5 8
.Sh AUTHORS
.An Dimitris Papastamos Aq Mt sin@2f30.org .