Docs for using runit with upstart
Lloyd Zusman <[email protected]>
| Newsgroups | gmane.comp.misc.pape.general |
|---|---|
| Message-ID | <[email protected]> |
There's a replacement for /etc/inittab processing called "upstart" that is currently being used in Ubuntu linux and possibly other places (see http://upstart.ubuntu.com/). I got runit going under this environment, and I thought it would be useful to add upstart instructions to the "runit - use with traditional init" documentation that's located at http://smarden.org/runit/useinit.html I'd like to offer the following documentation to be added right below the "Using with sysvinit" section: Using with sysvinit and upstart If your system uses a sysvinit alike init scheme that utilizes upstart instead of inittab, and which has start and stop scripts located in /etc/event.d, do: # cat >/etc/event.d/SV <<EOT # for runit - manage /sbin/runsvdir-start start on runlevel-2 start on runlevel-3 start on runlevel-4 start on runlevel-5 stop on shutdown respawn /sbin/runsvdir-start EOT and tell init to re-read its configuration, e.g.: # init q As part of this, I'd also recommend changing the current heading "Using with sysvinit" to "Using with sysvinit and inittab", or some such thing. -- Lloyd Zusman [email protected] God bless you.