G. Pape
runit

runit - use with traditional init


It's possible to use runit's service supervision without replacing the init scheme of the system. Simply run the stage 2 of runit as a service with your current init.

Normally this is done by either adding /etc/runit/2 as command to /etc/rc.local, or by adding an entry for /etc/runit/2 to /etc/inittab.


If your system uses a sysvinit alike init scheme with a /etc/inittab file, do:
  # cat >>/etc/inittab <<EOT
  SV:123456:respawn:/etc/runit/2
  EOT
and tell init to reread its configuration, e.g.:
  # init q

If your system uses a BSD alike init scheme with a /etc/rc.local script, do:
  # cat >>/etc/rc.local <<EOT
  /etc/runit/2 &
  EOT
and reboot your system.
Gerrit Pape <pape@smarden.org>
$Id: useinit.html,v 1.1 2003/05/03 15:57:56 pape Exp $