From e3ec9d799668eb7624c742277a08fa2f8f7e3170 Mon Sep 17 00:00:00 2001 From: Gerrit Pape Date: Fri, 3 Nov 2006 22:25:09 +0000 Subject: * doc/runscripts.html: add contributed run scripts (thx Kevin, marlowe, ed neville, xavier dutoit). --- doc/runscripts.html | 100 ++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 86 insertions(+), 14 deletions(-) (limited to 'doc') diff --git a/doc/runscripts.html b/doc/runscripts.html index 3e52814..2d5e586 100644 --- a/doc/runscripts.html +++ b/doc/runscripts.html @@ -19,11 +19,18 @@ an operating system not stated here, please let me know.

Thanks go to the following people for contributing run scripts: + Alessandro Bono, Robin S. Socha, Claus Alboege, Paul Jarc, clemens fischer, Jesse Cablek, Lukas Beeler, Thomas Baden, Ralf Hildebrandt, Antonio Dias, Erich Schubert, Lang Martin, Tomasz Nidecki, Marek Bartnikowski, Thomas Schwinge, Gael Canal, Woon Wai Keen, Richard A Downing, Phil Genera, -Stefan Karrmann, Kevin Berry, Karl Chen, Sascha Huedepohl, Jason Smith. +Stefan Karrmann, Kevin Berry, Karl Chen, Sascha Huedepohl, Jason Smith, +Kevin, marlowe, ed neville, xavier dutoit. + +

+See also +here for some more run +scripts.


atftpd
apache
@@ -48,6 +55,7 @@ Stefan Karrmann, Kevin Berry, Karl Chen, Sascha Huedepohl, Jason Smith. expireproctitle
fam
fcron
+fetchmail
gdm
getty
gpm
@@ -73,7 +81,9 @@ logging console messages
pop3-ssl
pop3vscan
portmap
+postfix
postgresql
+powernowd
ppp
privoxy
proftpd
@@ -89,6 +99,7 @@ logging console messages
sshd under tcpserver
statd, mountd
stunnel
+subversion
swat
syslogd
taiclockd
@@ -383,6 +394,23 @@ to be set up. exec famd -T 0 -f
+

A postfix master run script

+(Debian etch) +
+ #!/bin/sh
+ exec 1>&2
+ 
+ daemon_directory=/usr/lib/postfix \
+ command_directory=/usr/sbin \
+ config_directory=/etc/postfix \
+ queue_directory=/var/spool/postfix \
+ mail_owner=postfix \
+ setgid_group=postdrop \
+   /etc/postfix/postfix-script check || exit 1
+ 
+ exec /usr/lib/postfix/master
+
+

A fcron run script

(LFS)
@@ -394,6 +422,20 @@ This service needs a
 log service
 to be set up.
 
+

A fetchmail run script

+(Linux) +
+ #!/bin/sh
+ INTERVAL=551
+ exec 2>&1
+ echo "*** Starting fetchmail service..."
+ exec env FETCHMAILHOME="./pid" \
+   chpst -u fetchmail fetchmail -v \
+     -f ./fetchmail.conf \
+     --nodetach \
+     --daemon ${INTERVAL}
+
+

A gdm run script

(Debian woody)
@@ -615,6 +657,14 @@ to be set up.
  exec softlimit -m "${MEM}" \
    ntpd -n
 
+(OpenNTPD on OpenBSD/Linux) +
+ #!/bin/sh
+ exec /usr/sbin/ntpd -s -d 2>&1
+
+This service needs a +log service +to be set up.

A nullidentd run script

(Debian sarge) @@ -682,6 +732,20 @@ This service needs a log service to be set up.
+

A powernowd run script

+(Debian) +
+ #!/bin/sh
+ set -e  # barf if modprobe fails
+ modprobe cpufreq-userspace
+ test ! -f /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ||
+   exec /usr/sbin/powernowd -d
+ 
+ echo "required sysfs objects not found!"
+ echo "Read /usr/share/doc/powernowd/README.Debian for more information."
+ sv down "$(pwd)"
+
+

A ppp run script

(FreeBSD)
@@ -864,19 +928,19 @@ to be set up.
 

A mountd run script

(Debian)
-#!/bin/sh
-sv start portmap statd || exit 1
-RPCNFSDCOUNT=8  # Number of servers to be started up by default
-RPCMOUNTDOPTS=
-
-trap '/usr/bin/killall -2 nfsd' 0
-trap 'exit 2' 1 2 3 15
-
-exportfs -r
-rpc.nfsd -- $RPCNFSDCOUNT
-rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
-  RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"
-rpc.mountd -F $RPCMOUNTDOPTS
+ #!/bin/sh
+ sv start portmap statd || exit 1
+ RPCNFSDCOUNT=8  # Number of servers to be started up by default
+ RPCMOUNTDOPTS=
+ 
+ trap '/usr/bin/killall -2 nfsd' 0
+ trap 'exit 2' 1 2 3 15
+ 
+ exportfs -r
+ rpc.nfsd -- $RPCNFSDCOUNT
+ rpcinfo -u localhost nfs 3 >/dev/null 2>&1 ||
+   RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3"
+ exec rpc.mountd -F $RPCMOUNTDOPTS
 

A stunnel run script

@@ -886,6 +950,14 @@ rpc.mountd -F $RPCMOUNTDOPTS exec /usr/local/sbin/stunnel -f -d 1234 -r 25 -v3 -a /etc/ssl/mailcerts 2>&1

+

A svnserve run script

+(Debian) +
+ #!/bin/sh
+ exec 2>&1
+ exec /usr/bin/svnserve -d --foreground
+
+

A swat run script

  #!/bin/sh
-- 
cgit 1.4.1