summary refs log tree commit diff
path: root/doc/useinit.html
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2007-06-14 14:24:38 +0000
committerGerrit Pape <pape@woph.(none)>2007-06-14 14:25:05 +0000
commit4f17342b8ffdb54fdfa12a62519b7d685b7e7ccd (patch)
tree8dbdc80e07f30c84eac75926833b8cfda616be83 /doc/useinit.html
parent172c4357c29493d4246a4517bfab030b7db363ba (diff)
downloadrunit-4f17342b8ffdb54fdfa12a62519b7d685b7e7ccd.tar.gz
runit-4f17342b8ffdb54fdfa12a62519b7d685b7e7ccd.tar.xz
runit-4f17342b8ffdb54fdfa12a62519b7d685b7e7ccd.zip
doc/useinit.html: add docs on how to use with upstart (thx Lloyd Zusman)
Diffstat (limited to 'doc/useinit.html')
-rw-r--r--doc/useinit.html25
1 files changed, 23 insertions, 2 deletions
diff --git a/doc/useinit.html b/doc/useinit.html
index 6394967..2623248 100644
--- a/doc/useinit.html
+++ b/doc/useinit.html
@@ -27,11 +27,12 @@ In any case, you first need to copy the <i>stage 2</i> script to
  # mkdir -p /var/service
 </pre>
 <hr>
-<a href="#sysv">How to use with sysvinit</a><br>
+<a href="#sysv">How to use with sysvinit and inittab</a><br>
+<a href="#upstart">How to use with sysvinit and upstart</a><br>
 <a href="#bsd">How to use with *BSD init</a><br>
 <a href="#macosx">How to use with MacOSX init</a>
 <hr>
-<a name="sysv"><h2>Using with sysvinit</h2></a>
+<a name="sysv"><h2>Using with sysvinit and inittab</h2></a>
 If your system uses a sysvinit alike init scheme with a <tt>/etc/inittab</tt>
 file, do:
 <pre>
@@ -44,6 +45,26 @@ and tell <i>init</i> to re-read its configuration, e.g.:
  # init q
 </pre>
 <hr>
+<a name="upstart"><h2>Using with sysvinit and upstart</h2></a>
+If your system uses a sysvinit alike init scheme that utilizes upstart
+instead of inittab, and which has start and stop scripts located in
+<tt>/etc/event.d</tt>, do:
+<pre>
+ # cat >/etc/event.d/SV <<\EOT
+ # for runit - manage /sbin/runsvdir-start
+ start on runlevel-2
+ start on runlevel-3
+ start on runlevel-4
+ start on runlevel-5
+ stop on shutdown
+ respawn /sbin/runsvdir-start
+ EOT
+</pre>
+and tell init to re-read its configuration, e.g.:
+<pre>
+ # init q
+</pre>
+<hr>
 <a name="bsd"><h2>Using with *BSD init</h2></a>
 If your system uses a BSD alike init scheme with a <tt>/etc/rc.local</tt>
 script, do: