commit b968f7a072d0246867ae3ecc035e899dbfeda62c
parent 919abb6ecb2ab7f6451fc66af5ac2fdcf319fd97
Author: Gerrit Pape <pape@smarden.org>
Date: Sat, 22 Dec 2001 22:57:51 +0000
runscripts added.
/usr/local/bin link reenabled.
Diffstat:
3 files changed, 97 insertions(+), 8 deletions(-)
diff --git a/doc/runscripts.html b/doc/runscripts.html
@@ -0,0 +1,88 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<title>runit - collection of run scripts</title>
+</head>
+<body>
+<a href="http://smarden.org/pape/">G. Pape</a><br>
+<a href="index.html">runit</a><br>
+<a href="replaceinit.html">How to replace init</a>
+<hr>
+<h1>runit - collection of run scripts</h1>
+<hr>
+<a href="#getty">getty</a><br>
+<a href="#sshd">sshd</a><br>
+<a href="#klogd">klogd</a><br>
+<a href="#dhcpd">dhcpd</a><br>
+<a href="#dhclient">dhclient</a><br>
+<a href="#gdm">gdm</a>
+<hr>
+This is a collection of <tt>run</tt> scripts for popular services to have
+them monitored by the
+<a href="http://cr.yp.to/daemontools.html">daemontools</a> package. If you
+have additional run scripts or one of these run scripts works for you on
+an operating system not stated here, please
+<a href="mailto:pape@smarden.org">let me know</a>.
+<hr>
+<h3><a name="getty">A <tt>mingetty</tt> run script</a></h3>
+<i>(Debian)</i>
+<pre>
+#!/bin/sh
+exec mingetty tty5
+</pre>
+The <a href="index.html">runit</a> package does not care about utmp records
+for getties. You should choose a getty that handles its own utmp and wtmp
+records. Debian's <tt>mingetty</tt> does create his own utmp record.
+<hr>
+<h3><a name="sshd">A <tt>sshd</tt> run script</a></h3>
+<i>(Debian woody)</i>
+<pre>
+#!/bin/sh
+exec 2>&1
+exec sshd -D -e
+</pre>
+This service needs a
+<a href="http://cr.yp.to/daemontools/faq/create.html#runlog">log service</a>
+to be set up.
+<p>
+The <tt>sshd</tt> program is version <tt>OpenSSH_2.9p2</tt>.
+<hr>
+<h3><a name="klogd">A <tt>klogd</tt> run script</a></h3>
+<i>(Debian woody)</i>
+<pre>
+#!/bin/sh
+exec 2>&1
+exec /sbin/klogd -n
+</pre>
+<hr>
+<h3><a name="dhcpd">A <tt>dhcpd</tt> run script</a></h3>
+<i>(Debian woody)</i>
+<pre>
+#!/bin/sh
+exec 2>&1
+exec dhcpd-2.2.x -d -f
+</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="dhclient">A <tt>dhclient</tt> run script</a></h3>
+<i>(Debian woody)</i>
+<pre>
+#!/bin/sh
+exec dhclient -d eth0
+</pre>
+<hr>
+<h3><a name="gdm">A <tt>gdm</tt> run script</a></h4>
+<i>(Debian woody)</i>
+<pre>
+#!/bin/sh
+exec gdm -nodaemon
+</pre>
+<hr>
+<address><a href="mailto:pape@smarden.org">
+Gerrit Pape <pape@smarden.org>
+</a></address>
+<small>$Id$</small>
+</body>
+</html>
diff --git a/package/CHANGES b/package/CHANGES
@@ -3,6 +3,7 @@ Sat, 22 Dec 2001 20:37:03 +0100
* runit: checks for pid == 1
* new: svwaitdown, svwaitup
* stage3: uses svwaitdown
+ * doc: runscripts.html added
runit 0.2.0
Mon, 26 Nov 2001 12:29:44 +0100
diff --git a/package/upgrade b/package/upgrade
@@ -20,11 +20,11 @@ do
ln -s $parent/runit/command/$i /command/$i'{new}'
mv -f /command/$i'{new}' /command/$i
done
-#echo 'Making compatibility links in /usr/local/bin...'
-#mkdir -p /usr/local/bin
-#for i in `cat package/commands`
-#do
-# rm -f /usr/local/bin/$i'{new}'
-# ln -s /command/$i /usr/local/bin/$i'{new}'
-# mv -f /usr/local/bin/$i'{new}' /usr/local/bin/$i
-#done
+echo 'Making compatibility links in /usr/local/bin...'
+mkdir -p /usr/local/bin
+for i in `cat package/commands`
+do
+ rm -f /usr/local/bin/$i'{new}'
+ ln -s /command/$i /usr/local/bin/$i'{new}'
+ mv -f /usr/local/bin/$i'{new}' /usr/local/bin/$i
+done