diff options
author | Gerrit Pape <pape@smarden.org> | 2003-06-22 18:25:31 +0000 |
---|---|---|
committer | Gerrit Pape <pape@smarden.org> | 2003-06-22 18:25:31 +0000 |
commit | 6f61edc615e01b95e70e8ef2220ae6d4a3003c88 (patch) | |
tree | bf869075e2e237d4cee9f692df57bac802e1a140 /doc/useinit.html | |
parent | fcdd951bae15d759d3f7d0aa89ad0b278859fa34 (diff) | |
download | runit-6f61edc615e01b95e70e8ef2220ae6d4a3003c88.tar.gz runit-6f61edc615e01b95e70e8ef2220ae6d4a3003c88.tar.xz runit-6f61edc615e01b95e70e8ef2220ae6d4a3003c88.zip |
* doc/index.html, doc/install.html, doc/replaceinit.html, doc/useinit.html:
how to install and configure runit on MacOSX. * svlogd.c: fix incorrect handling of processor's state file; minor code cleanup. * runit-init.c: exit 0 on wrong usage. 0.10.0
Diffstat (limited to 'doc/useinit.html')
-rw-r--r-- | doc/useinit.html | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/doc/useinit.html b/doc/useinit.html index 1450608..074d14c 100644 --- a/doc/useinit.html +++ b/doc/useinit.html @@ -14,17 +14,23 @@ the <i>init</i> scheme of the system. Simply run the <i>stage 2</i> of <i>runit</i> as a service with your current <i>init</i>. <p> -Normally this is done by either adding <tt>/etc/runit/2</tt> as command to -</tt>/etc/rc.local</tt>, or by adding an entry for <tt>/etc/runit/2</tt> to -<tt>/etc/inittab</tt>. +Normally this is done by either adding an entry for <tt>/etc/runit/2</tt> +to <tt>/etc/inittab</tt>, or by adding <tt>/etc/runit/2</tt> as command to +</tt>/etc/rc.local</tt>, or by adding <tt>/etc/runit/2</tt> to the system's +<tt>StartupItems</tt>. <p> -In either case, you first need to copy the <i>stage 2</i> script to +In any case, you first need to copy the <i>stage 2</i> script to <tt>/etc/runit/2</tt>: <pre> # mkdir -p /etc/runit # cp -p /package/admin/runit/etc/2 /etc/runit/ </pre> <hr> +<a href="#sysv">How to use with sysvinit</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> If your system uses a sysvinit alike init scheme with a <tt>/etc/inittab</tt> file, do: <pre> @@ -37,15 +43,26 @@ and tell <i>init</i> to reread its configuration, e.g.: # 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: <pre> # cat >>/etc/rc.local <<EOT - /etc/runit/2 & + csh -cf '/etc/runit/2 &' EOT </pre> and reboot your system. <hr> +<a name="macosx"><h2>Using with MacOSX init</h2></a> +On MacOSX 10.2 create an entry for <i>runit</i> in +<tt>/System/Library/StartupItems/</tt>: +<pre> + # cd /System/Library/StartupItems + # mkdir -p runit + # cp -p /package/admin/runit/etc/macosx/StartupItems/* runit/ +</pre> +and reboot your system. +<hr> <address><a href="mailto:pape@smarden.org"> Gerrit Pape <pape@smarden.org> </a></address> |