commit c900b337e5b3903474aa8d2377fd33547de45542
parent 0f5cd2f70cfa6cde9b2499dced70869045249c01
Author: Gerrit Pape <pape@smarden.org>
Date: Thu, 14 Jun 2007 14:24:38 +0000
doc/useinit.html: add docs on how to use with upstart (thx Lloyd Zusman)
Diffstat:
2 files changed, 25 insertions(+), 2 deletions(-)
diff --git 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:
diff --git a/package/CHANGES b/package/CHANGES
@@ -8,6 +8,8 @@
source port for each log message sent through udp.
* runit.c: fix typo in error messages (thx Matthew R. Dempsky); minor
rewording.
+ * doc/useinit.html: add instructions on how to use with upstart (thx
+ Lloyd Zusman).
1.7.2
Tue, 21 Nov 2006 15:13:47 +0000