G. Pape
runit

Name

init - a UNIX process no 1

Synopsis

init [ 0 | 6 ]

Description

runit-init is the first process the kernel starts. If runit-init is started as process no 1, it runs and replaces itself with runit(8).

If runit-init is started while the system is up, it must be either called as init 0 or init 6:

init 0
tells the Unix process no 1 to shutdown and halt the system. To signal runit(8) the system halt request, the /etc/runit/reboot file is removed and /etc/runit/stopit is touched. Then a CONT signal is sent to runit(8).
init 6
tells the Unix process no 1 to shutdown and reboot the system. To signal runit(8) the system reboot request, the /etc/runit/reboot and /etc/runit/stopit files are touched. Then a CONT signal is sent to runit(8).

Exit Codes

runit-init returns 111 on error, 0 in all other cases.

See Also

runit(8), svwaitdown(8), svwaitup(8)

http://smarden.org/runit/

Author

Gerrit Pape <pape@smarden.org>


Table of Contents