diff options
author | Gerrit Pape <pape@smarden.org> | 2004-06-26 14:28:11 +0000 |
---|---|---|
committer | Gerrit Pape <pape@smarden.org> | 2004-06-26 14:28:11 +0000 |
commit | e9ce8c0fb2b079e1d4662f3b425a6556e26fa9db (patch) | |
tree | 3defeb8c4c4e861bde360483f0b262a946811d2d /man | |
parent | 8608a4e8a500a4b0e334ddcabe2d4bbcfc8f0ea2 (diff) | |
download | runit-e9ce8c0fb2b079e1d4662f3b425a6556e26fa9db.tar.gz runit-e9ce8c0fb2b079e1d4662f3b425a6556e26fa9db.tar.xz runit-e9ce8c0fb2b079e1d4662f3b425a6556e26fa9db.zip |
* runit.c, man/runit.8: if stage 1 crashes or exits 100, stage 2 will be
skipped; if stage 2 crashes or exits 111, it will be restarted. * doc/runscripts.html: add, adapt various run scripts (thx).
Diffstat (limited to 'man')
-rw-r--r-- | man/runit.8 | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/man/runit.8 b/man/runit.8 index 4461065..d26d3ec 100644 --- a/man/runit.8 +++ b/man/runit.8 @@ -6,7 +6,7 @@ runit \- a UNIX process no 1 .SH DESCRIPTION .B runit must be run as Unix process no 1. -It performs the system's booting, running, and shutdown in three Stages: +It performs the system's booting, running, and shutdown in three stages: .SH STAGE 1 .B runit runs @@ -19,29 +19,30 @@ has full control of to be able to start an emergency shell if the one time initialization tasks fail. If .I /etc/runit/1 -itself crashes, +crashes, or exits 100, .B runit will skip stage 2 and enter stage 3. .SH STAGE 2 .B runit runs .IR /etc/runit/2 , -which should not return until system shutdown; if it crashes, it will be -restarted. +which should not return until system shutdown; if it crashes, or exits 111, +it will be restarted. Normally .I /etc/runit/2 starts .BR runsvdir (8). .B runit -is able to handle the ctrl-alt-del keyboard request in Stage 2, see below. +is able to handle the ctrl-alt-del keyboard request in stage 2, see below. .SH STAGE 3 If .B runit -is told to shutdown the system, or the Stage 2 returns without errors, it -terminates Stage 2 if it is running, and runs +is told to shutdown the system, or stage 2 returns, it terminates stage 2 if +it is running, and runs .IR /etc/runit/3 . -The systems tasks to shutdown and halt or reboot are done here. -If Stage 3 returns, +The systems tasks to shutdown and possibly halt or reboot the system are +done here. +If stage 3 returns, .B runit checks if the file .I /etc/runit/reboot @@ -59,7 +60,7 @@ runs waits for it to terminate, and then sends itself a CONT signal. .SH SIGNALS .B runit -only accepts signals in Stage 2. +only accepts signals in stage 2. .P If .B runit |