runit-init(8) System Manager's Manual runit-init(8)

# [NAME](#NAME)

init - a UNIX process no 1

# [SYNOPSIS](#SYNOPSIS)

**init** \[ 0 | 6 ]

# [DESCRIPTION](#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)](/man/os/runit/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**](#init)

tells the Unix process no 1 to shutdown and halt the system. To signal [**runit**(8)](/man/os/runit/runit.8) the system halt request, **runit-init** removes all permissions of the file */etc/runit/reboot* (chmod 0), and sets the execute by owner permission of the file */etc/runit/stopit* (chmod 100). Then a CONT signal is sent to [**runit**(8)](/man/os/runit/runit.8).

[**init 6**](#init~2)

tells the Unix process no 1 to shutdown and reboot the system. To signal [**runit**(8)](/man/os/runit/runit.8) the system reboot request, **runit-init** sets the execute by owner permission of the files */etc/runit/reboot* and */etc/runit/stopit* (chmod 100). Then a CONT signal is sent to [**runit**(8)](/man/os/runit/runit.8).

# [EXIT CODES](#EXIT_CODES)

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

# [SEE ALSO](#SEE_ALSO)

[runit(8)](/man/os/runit/runit.8), [runsvdir(8)](/man/os/runit/runsvdir.8), [runsvchdir(8)](/man/os/runit/runsvchdir.8), [sv(8)](/man/os/runit/sv.8), [runsv(8)](/man/os/runit/runsv.8), [chpst(8)](/man/os/runit/chpst.8), [utmpset(8)](/man/os/runit/utmpset.8), [svlogd(8)](/man/os/runit/svlogd.8)

https://smarden.org/runit/

# [AUTHOR](#AUTHOR)

Gerrit Pape &lt;pape@smarden.org&gt;

---

Document: runit-init(8) from runit 2.3.1-r5 (Chainguard OS)
Source: https://github.com/g-pape/runit
