summary refs log tree commit diff
path: root/doc/runscripts.html
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2002-01-29 18:56:36 +0000
committerGerrit Pape <pape@smarden.org>2002-01-29 18:56:36 +0000
commitfe39ac56e1cedc88828ffaacab18cdc747d04626 (patch)
tree807a4e2325b9307155911a85515a33d8e29d3bb2 /doc/runscripts.html
parent586824b9a97781004b8d5f5beaa81a156c5148d7 (diff)
downloadrunit-fe39ac56e1cedc88828ffaacab18cdc747d04626.tar.gz
runit-fe39ac56e1cedc88828ffaacab18cdc747d04626.tar.xz
runit-fe39ac56e1cedc88828ffaacab18cdc747d04626.zip
0.3.0.
many changes, see package/CHANGES.
Diffstat (limited to 'doc/runscripts.html')
-rw-r--r--doc/runscripts.html58
1 files changed, 54 insertions, 4 deletions
diff --git a/doc/runscripts.html b/doc/runscripts.html
index f13dd1d..11a60f4 100644
--- a/doc/runscripts.html
+++ b/doc/runscripts.html
@@ -13,9 +13,12 @@
 <a href="#getty">getty</a><br>
 <a href="#sshd">sshd</a><br>
 <a href="#klogd">klogd</a><br>
+<a href="#expireproctitle">expireproctitle</a><br>
 <a href="#dhcpd">dhcpd</a><br>
 <a href="#dhclient">dhclient</a><br>
-<a href="#gdm">gdm</a>
+<a href="#gdm">gdm</a><br>
+<a href="#statd">statd</a>, <a href="#mountd">mountd</a><br>
+<a href="#squid">squid</a>
 <hr>
 This is a collection of <tt>run</tt> scripts for popular services to have
 them monitored by the
@@ -54,12 +57,19 @@ The <tt>sshd</tt> program is version <tt>OpenSSH_2.9p2</tt>.
   exec /sbin/klogd -n
 </pre>
 <hr>
+<h3><a name="expireproctitle">An <tt>expireproctitle</tt> run script</a></h3>
+<pre>
+  #!/bin/sh
+  echo -n .
+  exec sleep 300
+</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
+  exec dhcpd-2.2.x -f -d -cf ./config eth0
 </pre>
 This service needs a
 <a href="http://cr.yp.to/daemontools/faq/create.html#runlog">log service</a>
@@ -69,16 +79,56 @@ to be set up.
 <i>(Debian woody)</i>
 <pre>
   #!/bin/sh
-  exec dhclient -d eth0
+  exec dhclient -e -d -cf ./config -lf ./leases -pf ./pid eth1
 </pre>
 <hr>
-<h3><a name="gdm">A <tt>gdm</tt> run script</a></h4>
+<h3><a name="gdm">A <tt>gdm</tt> run script</a></h3>
 <i>(Debian woody)</i>
 <pre>
   #!/bin/sh
   exec gdm -nodaemon
 </pre>
 <hr>
+<h3><a name="statd">A <tt>statd</tt> run script</a></h3>
+<i>(Debian woody)</i>
+<pre>
+  #!/bin/sh
+  exec 2>&1
+  NEED_LOCKD=yes
+  if test -f /proc/ksyms; then
+    # We need to be conservative and run lockd,
+    # unless we can prove that it isn't required.
+    grep -q lockdctl /proc/ksyms || NEED_LOCKD=no
+  fi
+  if [ "$NEED_LOCKD" = yes ]; then
+    /sbin/rpc.lockd
+  fi
+  exec rpc.statd -F -d
+</pre>
+This service needs a
+<a href="http://cr.yp.to/daemontools/faq/create.html#runlog">log service</a>
+to be set up.
+<h3><a name="mountd">A <tt>mountd</tt> run script</a></h3>
+<i>(Debian woody)</i>
+<pre>
+  #!/bin/sh
+  svwaitup /service/statd
+  RPCNFSDCOUNT=8  # Number of servers to be started up by default
+  RPCMOUNTDOPTS=-F
+  exportfs -r
+  rpc.nfsd -- $RPCNFSDCOUNT
+  rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
+    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"
+  exec rpc.mountd $RPCMOUNTDOPTS
+</pre>
+<hr>
+<h3><a name="squid">A <tt>squid</tt> run script</a></h3>
+<i>(Debian woody)</i>
+<pre>
+  #!/bin/sh
+  exec squid -f ./config -sN
+</pre>
+<hr>
 <address><a href="mailto:pape@smarden.org">
 Gerrit Pape &lt;pape@smarden.org&gt;
 </a></address>