diff options
author | Gerrit Pape <pape@smarden.org> | 2005-04-18 17:07:12 +0000 |
---|---|---|
committer | Gerrit Pape <pape@smarden.org> | 2005-04-18 17:07:12 +0000 |
commit | a0d9fa8a147e10f9999aa2ab07adb6d75684da34 (patch) | |
tree | 633e859f67ce5ca0ea5238e525d7032f0469d5f0 /doc | |
parent | 58778f971f9646815ab7ff2bdcd351f7adcfee7d (diff) | |
download | runit-a0d9fa8a147e10f9999aa2ab07adb6d75684da34.tar.gz runit-a0d9fa8a147e10f9999aa2ab07adb6d75684da34.tar.xz runit-a0d9fa8a147e10f9999aa2ab07adb6d75684da34.zip |
* doc/runscripts.html: add contributed run scripts (thx Kevin Berry);
remove mysql run scripts. * svlogd.dist, svwaitdown.dist, svwaitup.dist: fix program selftest's false alarms (thx Ian Stokes-Rees). 1.2.3.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/install.html | 12 | ||||
-rw-r--r-- | doc/replaceinit.html | 4 | ||||
-rw-r--r-- | doc/runscripts.html | 62 |
3 files changed, 43 insertions, 35 deletions
diff --git a/doc/install.html b/doc/install.html index 4e2449f..afa63a8 100644 --- a/doc/install.html +++ b/doc/install.html @@ -17,14 +17,14 @@ If you don't have a <tt>/package</tt> directory, create it now: # chmod 1755 /package </pre> Download -<a href="runit-1.2.2.tar.gz">runit-1.2.2.tar.gz</a> into <tt>/package</tt> +<a href="runit-1.2.3.tar.gz">runit-1.2.3.tar.gz</a> into <tt>/package</tt> and unpack the archive <pre> # cd /package - # gunzip runit-1.2.2.tar - # tar -xpf runit-1.2.2.tar - # rm runit-1.2.2.tar - # cd admin/runit-1.2.2 + # gunzip runit-1.2.3.tar + # tar -xpf runit-1.2.3.tar + # rm runit-1.2.3.tar + # cd admin/runit-1.2.3 </pre> On MacOSX, do <pre> @@ -43,7 +43,7 @@ hierarchy, do: </pre> To report success: <pre> - # mail pape-runit-1.2.2@smarden.org <compile/sysdeps + # mail pape-runit-1.2.3@smarden.org <compile/sysdeps </pre> If you use <i>runit</i> regularly, please <a href="http://smarden.org/pape/#contribution">contribute</a> to the project. diff --git a/doc/replaceinit.html b/doc/replaceinit.html index 3858413..c39c292 100644 --- a/doc/replaceinit.html +++ b/doc/replaceinit.html @@ -117,7 +117,7 @@ default Unix process no 1 <i>runit</i>. </pre> To report success: <pre> - # ( uname -a ; cat /etc/runit/[123] ) |mail pape-runit-1.2.2@smarden.org + # ( uname -a ; cat /etc/runit/[123] ) |mail pape-runit-1.2.3@smarden.org </pre> <hr> @@ -206,7 +206,7 @@ This will cause <i>runit</i> to enter stage 3 which runs <p> To report success: <pre> - # ( uname -a ; cat /etc/runit/[123] ) |mail pape-runit-1.2.2@smarden.org + # ( uname -a ; cat /etc/runit/[123] ) |mail pape-runit-1.2.3@smarden.org </pre> <h3>Step 5: Service migration</h3> The goal is to migrate all services from <i>/etc/rc.*</i> scheme to the diff --git a/doc/runscripts.html b/doc/runscripts.html index 7cd8ec2..ef194ff 100644 --- a/doc/runscripts.html +++ b/doc/runscripts.html @@ -62,10 +62,12 @@ Stefan Karrmann, Kevin Berry, Karl Chen. <a href="#loglinuxkernel">logging Linux kernel messages</a><br> <a href="http://multivac.cwru.edu./fdtools/grabconsole/"> logging console messages</a><br> +<a href="#mdadm">mdadm</a><br> <a href="#minidentd">minidentd</a><br> <a href="#mpd">mpd</a><br> -<a href="#mysql">mysql</a><br> +<a href="#nscd">nscd</a><br> <a href="#ntpd">ntpd</a><br> +<a href="#nullidentd">nullidentd</a><br> <a href="#polipo">polipo</a><br> <a href="#pop3-ssl">pop3-ssl</a><br> <a href="#pop3vscan">pop3vscan</a><br> @@ -543,6 +545,16 @@ A run script for <tt>logging Linux kernel messages with multilog</tt></a></h3> multilog t n64 ./main </pre> <hr> +<h3><a name="mdadm">A <tt>mdadm</tt> run script</a></h3> +(<i>Debian sarge</i>) +<pre> + #!/bin/sh + DEBIANCONFIG=/etc/default/mdadm + MAIL_TO=root + test -f $DEBIANCONFIG && . $DEBIANCONFIG + exec mdadm --monitor --scan --mail $MAIL_TO +</pre> +<hr> <h3><a name="minidentd">A <tt>minidentd</tt> run script</a></h3> (<i>Linux</i>) <pre> @@ -568,34 +580,19 @@ This service needs a <a href="http://cr.yp.to/daemontools/faq/create.html#runlog">log service</a> to be set up. <hr> -<h3><a name="mysql">A <tt>mysql</tt> run script</a></h3> -(<i>SunOS</i>) -<pre> - #!/bin/sh - exec setuidgid mysql /pack/mysql/current/libexec/mysqld \ - --basedir=/pack/mysql/current \ - --datadir=/pack/mysql/data/ \ - --socket=/tmp/mysql.sock \ - --pid-file=/pack/mysql/data/mysql.pid 2>&1 -</pre> -(<i>LFS</i>) -<pre> - #!/bin/sh - exec 2>&1 - exec /usr/sbin/mysqld -u mysql -</pre> -(<i>Debian</i>, ``It's an ugly hack, but it works'') +<h3><a name="nscd">A <tt>nscd</tt> run script</a></h3> +(<i>Debian sarge</i>) <pre> #!/bin/sh - cd / - umask 077 - - MYSQLADMIN='/usr/bin/mysqladmin --defaults-extra-file=/etc/mysql/debian.cnf' - - trap "$MYSQLADMIN shutdown" 0 - trap 'exit 2' 1 2 3 15 - - /usr/bin/mysqld_safe & wait + secure="" + for table in passwd group + do + if egrep '^'$table':.*nisplus' /etc/nsswitch.conf >/dev/null + then + nscd_nischeck $table || secure="$secure -S $table,yes" + fi + done + exec nscd -d -- $secure </pre> <hr> <h3><a name="ntpd">A <tt>ntpd</tt> run script</a></h3> @@ -607,6 +604,17 @@ to be set up. ntpd -n </pre> <hr> +<h3><a name="nullidentd">A <tt>nullidentd</tt> run script</a></h3> +(<i>Debian sarge</i>) +<pre> + #!/bin/sh + exec 2>&1 + exec tcpsvd -u nobody -x nullidentd-cdb -t 60 0 113 nullidentd +</pre> +This service needs a +<a href="http://cr.yp.to/daemontools/faq/create.html#runlog">log service</a> +to be set up. +<hr> <h3><a name="polipo">A <tt>polipo</tt> run script</a></h3> (<i>Linux</i>) <pre> |