summary refs log tree commit diff
path: root/doc/runlevels.html
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2003-10-29 11:19:03 +0000
committerGerrit Pape <pape@smarden.org>2003-10-29 11:19:03 +0000
commit2762f72fe4238827235a2e1249955aeff030a7fb (patch)
tree0aca719ef8e83c2b13179745121d210ec76e28a5 /doc/runlevels.html
parent72dfd7484b220331a212f19699db782a45bbae85 (diff)
downloadrunit-2762f72fe4238827235a2e1249955aeff030a7fb.tar.gz
runit-2762f72fe4238827235a2e1249955aeff030a7fb.tar.xz
runit-2762f72fe4238827235a2e1249955aeff030a7fb.zip
* doc/benefits.html, doc/index.html, doc/replaceinit.html,
    doc/runlevels.html, doc/useinit.html: default service directory is
    /var/service; minor.
  * etc/2, etc/debian/3, etc/freebsd/3, etc/macosx/StartupItems/runit,
    etc/openbsd/3, man/runsv.8, man/runsvchdir.8, man/runsvdir.8: default
    service directory is /var/service.
Diffstat (limited to 'doc/runlevels.html')
-rw-r--r--doc/runlevels.html14
1 files changed, 8 insertions, 6 deletions
diff --git a/doc/runlevels.html b/doc/runlevels.html
index c83d7de..66075ee 100644
--- a/doc/runlevels.html
+++ b/doc/runlevels.html
@@ -24,15 +24,17 @@ Create the following directories and symlinks:
  # ln -s /etc/runit/getty-5 /etc/runit/runsvdir/single/getty-5
  # ln -s default /etc/runit/runsvdir/current
 </pre>
-Copy the content of <tt>/service/</tt> to <tt>/etc/runit/runsvdir/current</tt>
-and replace <tt>/service</tt> with a symlink:
+Copy the content of <tt>/var/service/</tt> to
+<tt>/etc/runit/runsvdir/current</tt>
+and replace <tt>/var/service</tt> with a symlink:
 <pre>
- # cp -pR /service/* /etc/runit/runsvdir/current/
- # mv -f /service /service.old && ln -s /etc/runit/runsvdir/current /service
+ # cp -pR /var/service/* /etc/runit/runsvdir/current/
+ # mv -f /var/service /service.old && \
+     ln -s /etc/runit/runsvdir/current /var/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 safe to remove
-<tt>/service.old</tt> if you don't need it anymore.
+<tt>/var/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:
@@ -44,7 +46,7 @@ stage 2 starts:
  <b>runsvchdir default &gt;/dev/null</b>
  
  exec env - PATH=$PATH \
- runsvdir /service 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'
+ runsvdir /var/service 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'
 </pre>
 <hr>
 <a name="switch"><h3>Switching runlevels</h3></a>