diff options
author | Gerrit Pape <pape@smarden.org> | 2002-10-07 09:29:38 +0000 |
---|---|---|
committer | Gerrit Pape <pape@smarden.org> | 2002-10-07 09:29:38 +0000 |
commit | 9dcd5fddf3fd745c6265bbb2c89673009e0db7a4 (patch) | |
tree | 7ab798cc53234690b65a80ea254881d6c2f54027 /doc/runlevels.html | |
parent | 58416189c11a9dcfc4514980cb1b3c78e0dabe5c (diff) | |
download | runit-9dcd5fddf3fd745c6265bbb2c89673009e0db7a4.tar.gz runit-9dcd5fddf3fd745c6265bbb2c89673009e0db7a4.tar.xz runit-9dcd5fddf3fd745c6265bbb2c89673009e0db7a4.zip |
0.7.0.
Diffstat (limited to 'doc/runlevels.html')
-rw-r--r-- | doc/runlevels.html | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/doc/runlevels.html b/doc/runlevels.html index f4019c3..0d38d0b 100644 --- a/doc/runlevels.html +++ b/doc/runlevels.html @@ -27,12 +27,25 @@ Create the following direcotories and symlinks: Copy the content of <tt>/service/</tt> to <tt>/etc/runit/runsvdir/current</tt> and replace <tt>/service</tt> with a symlink: <pre> - # cp -pr /service/* /etc/runit/runsvdir/current/ + # cp -pR /service/* /etc/runit/runsvdir/current/ # mv -f /service /service.old && ln -s /etc/runit/runsvdir/current /service </pre> You have now created two runlevels: <tt>default</tt> and <tt>single</tt>. The <tt>current</tt> runlevel is <tt>default</tt>. It is save to remove <tt>/service.old</tt> if you don't need it anymore. +<p> +Finally edit <tt>/etc/runit/2</tt> to set the <tt>default</tt> runlevel when +stage 2 starts: +<pre> + $ cat /etc/runit/2 + #!/bin/sh + PATH=/command:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin + + <b>runsvchdir default >/dev/null</b> + + exec env - PATH=$PATH \ + runsvdir /service 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................' +</pre> <hr> <a name="switch"><h3>Switching runlevels</h3></a> Switching runlevels with <i>runit</i> is done by |