runit (init system)

from Wikipedia, the free encyclopedia

runit is an init system for POSIX systems that was designed as a replacement for SysVinit . It is the standard init system from Void Linux , Dragora and (on an equal footing with OpenRC) also from Artix Linux.

particularities

The runit system is optimized for speed and code size. The developer recommends using the diet libc as a C library.

functionality

runit works in three stages: Stage 1 (boot process), Stage 2 (while the system is in use) and Stage 3 (shutdown / restart of the system).

Stage 1

At this stage runit / etc / runit / 1 starts , usually a shell script . This is where the system initializations are carried out. There is full access to / dev / console in order to be able to start a rescue console in an emergency.

Stage 2

The / etc / runit / 2 script should not return any value before shutting down or restarting the system. The system services are usually started and controlled here. To do this, runit accesses the individual services via runsvdir .

Stage 3

If runit is instructed to shut down the system, or the level 2 script exits without errors, / etc / runit / 3 is called, which terminates all running level 2 processes and shuts down the system.

Individual evidence

  1. ^ Artix Linux - Home. Retrieved July 17, 2019 .
  2. runit - use dietlibc. Retrieved August 18, 2014 .
  3. runsvdir (8) manual page. Retrieved August 18, 2014 .

Web links