commit 75cdae2f1f9e415c6d10504d47bd7069cdfec007
parent 7e3cf3d0c93446fac74f55df9c301e4d0a3b6682
Author: Gerrit Pape <pape@smarden.org>
Date: Mon, 22 Sep 2003 09:59:26 +0000
introduce runsvdir-start.
Diffstat:
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/doc/useinit.html b/doc/useinit.html
@@ -20,10 +20,9 @@ to <tt>/etc/inittab</tt>, or by adding <tt>/etc/runit/2</tt> as command to
<tt>StartupItems</tt>.
<p>
In any case, you first need to copy the <i>stage 2</i> script to
-<tt>/etc/runit/2</tt>:
+<tt>/sbin/runsvdir-start</tt>:
<pre>
- # mkdir -p /etc/runit
- # cp -p /package/admin/runit/etc/2 /etc/runit/
+ # install -m0750 /package/admin/runit/etc/2 /sbin/runsvdir-start
</pre>
<hr>
<a href="#sysv">How to use with sysvinit</a><br>
@@ -35,7 +34,7 @@ If your system uses a sysvinit alike init scheme with a <tt>/etc/inittab</tt>
file, do:
<pre>
# cat >>/etc/inittab <<EOT
- SV:123456:respawn:/etc/runit/2
+ SV:123456:respawn:/sbin/runsvdir-start
EOT
</pre>
and tell <i>init</i> to reread its configuration, e.g.:
@@ -48,7 +47,7 @@ If your system uses a BSD alike init scheme with a <tt>/etc/rc.local</tt>
script, do:
<pre>
# cat >>/etc/rc.local <<EOT
- csh -cf '/etc/runit/2 &'
+ csh -cf '/sbin/runsvdir-start &'
EOT
</pre>
and reboot your system.
diff --git a/etc/macosx/StartupItems/runit b/etc/macosx/StartupItems/runit
@@ -8,7 +8,7 @@
StartService() {
ConsoleMessage "Starting runit service supervision"
- /bin/csh -cf '/etc/runit/2 &'
+ /bin/csh -cf '/sbin/runsvdir-start &'
}
StopService() {
ConsoleMessage "Stopping runit service supervision"