Supriya Ghosh (Editor)

Runit

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Original author(s)
  
Gerrit Pape

Written in
  
C, Shell

Development status
  
Active

Initial release
  
February 10, 2004; 13 years ago (2004-02-10)

Stable release
  
2.1.2 / August 10, 2014; 2 years ago (2014-08-10)

Operating system
  
Linux, BSD, Mac OS X, Solaris

runit is an init scheme for Unix-like operating systems that initializes, supervises, and ends processes throughout the operating system. Runit is a reimplementation of the daemontools process supervision toolkit that runs on the Linux, Mac OS X, *BSD, and Solaris operating systems. Runit features parallelization of the start up of system services, which can speed up the boot time of the operating system.

Contents

Runit is an init daemon, so it is the direct or indirect ancestor of all other processes. It is the first process started during booting, and continues running until the system is shut down.

Design

Runit focuses on being a small, modular, and portable codebase. Runit is split into three stages: one time initialization, process supervision, and halting or rebooting. While the first and third stages must be adapted to the specific operating system they are running on, the second stage is portable across all POSIX compliant operating systems.

Usage

Runit can be used either as a drop-in replacement for sysvinit, or as a service supervisor with sysvinit as the parent PID1 process run from inittab. The RubyWorks stack of software able to run Ruby on Rails incorporated Runit into its suite. Runit is the default init system for Void Linux.

References

Runit Wikipedia