summary refs log tree commit diff
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2003-09-22 09:59:26 +0000
committerGerrit Pape <pape@smarden.org>2003-09-22 09:59:26 +0000
commit7f1fb92fde90cbc2cd2eef810fb1855d929cf2c1 (patch)
treeb120f93ba7ac1c9760dcc749a7de78d62109c238
parent2647eda98df48d4f454354432286989dd5015a6e (diff)
downloadrunit-7f1fb92fde90cbc2cd2eef810fb1855d929cf2c1.tar.gz
runit-7f1fb92fde90cbc2cd2eef810fb1855d929cf2c1.tar.xz
runit-7f1fb92fde90cbc2cd2eef810fb1855d929cf2c1.zip
introduce runsvdir-start.
-rw-r--r--doc/useinit.html9
-rwxr-xr-xetc/macosx/StartupItems/runit2
2 files changed, 5 insertions, 6 deletions
diff --git a/doc/useinit.html b/doc/useinit.html
index 074d14c..5ce5797 100644
--- 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 &gt;&gt;/etc/inittab &lt;&lt;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 &gt;&gt;/etc/rc.local &lt;&lt;EOT
-  csh -cf '/etc/runit/2 &amp;'
+  csh -cf '/sbin/runsvdir-start &amp;'
   EOT
 </pre>
 and reboot your system.
diff --git a/etc/macosx/StartupItems/runit b/etc/macosx/StartupItems/runit
index 2a4f731..11510fb 100755
--- 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"