diff options
author | Gerrit Pape <pape@smarden.org> | 2007-06-14 14:24:38 +0000 |
---|---|---|
committer | Gerrit Pape <pape@woph.(none)> | 2007-06-14 14:25:05 +0000 |
commit | 4f17342b8ffdb54fdfa12a62519b7d685b7e7ccd (patch) | |
tree | 8dbdc80e07f30c84eac75926833b8cfda616be83 | |
parent | 172c4357c29493d4246a4517bfab030b7db363ba (diff) | |
download | runit-4f17342b8ffdb54fdfa12a62519b7d685b7e7ccd.tar.gz runit-4f17342b8ffdb54fdfa12a62519b7d685b7e7ccd.tar.xz runit-4f17342b8ffdb54fdfa12a62519b7d685b7e7ccd.zip |
doc/useinit.html: add docs on how to use with upstart (thx Lloyd Zusman)
-rw-r--r-- | doc/useinit.html | 25 | ||||
-rw-r--r-- | package/CHANGES | 2 |
2 files changed, 25 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: diff --git a/package/CHANGES b/package/CHANGES index 40b22ab..e2d2320 100644 --- 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 |