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.
#!/bin/sh exec /usr/sbin/in.tftpd --daemon --no-fork --tftpd-timeout 30 \ --retry-timeout 5 --no-tsize --no-blksize --no-multicast \ --maxthread 1000 --verbose=7 /var/atfpd 2>&1
#!/bin/sh exec 2>&1 exec env -i \ /pack/apache/1.3.27-1/sbin/httpd -F 2>&1(Debian woody)
#!/bin/sh exec 1>&2 exec apache-ssl -F
#!/bin/sh exec 2>&1 exec env -i /command/pgrphack \ /pack/apache/2.0.43-1/sbin/httpd -DFOREGROUND 2>&1(HP-UX/GNU, Linux)
#!/bin/sh TZ=MET-1METDST export TZ exec /usr/local/apache2/bin/httpd -DNO_DETACH
#!/bin/sh MEM="`head -1 ./env/MEM`" CHROOT="`head -1 ./env/CHROOT`" exec softlimit -m "${MEM}" \ named -u bind -t "${CHROOT}" -g 2>&1(HP-UX/GNU, Linux)
#!/bin/sh exec /usr/sbin/named -f -t /var/spool/named/ -u named
#!/bin/sh exec 2>&1 ulimit -n 1024 exec /pack/boa/current/boa -c /pack/boa/current -d 2>&1
#!/bin/sh /pack/cfengine/sbin/cfagent --file /pack/cfengine/etc/cfagent.conf \ -L -v -q exec sleep 3600
#!/bin/sh exec 2>&1 exec /usr/sbin/chronyd -d -r -sThis service needs a log service to be set up.
#!/bin/sh exec 2>&1 exec /usr/local/bin/setuidgid clamav \ /usr/local/bin/softlimit -a 40000000 /usr/local/sbin/clamdThis service needs a log service to be set up.
#!/bin/sh exec 2>&1 PREFIX="/usr/lib/courier-imap" exec envdir ./env \ tcpserver -v -R 0 143 \ $PREFIX/sbin/imaplogin \ $PREFIX/libexec/authlib/authshadow \ $PREFIX/libexec/authlib/authvchkpw \ $PREFIX/bin/imapd MaildirSee also this page.
#!/bin/sh exec 2>&1 exec /usr/sbin/cupsd -f
#!/bin/sh exec dhclient -e -d -cf ./config -lf ./leases -pf ./pid eth1
#!/bin/sh dhcpcd -a -d -D -H eth0
#!/bin/sh exec 2>&1 exec dhcpd-2.2.x -f -d -cf ./config eth0This service needs a log service to be set up.
(Solaris 8, uses additional dsvclockd service, would get fired off automatically, but then it's not supervised)
#!/bin/sh exec 2>&1 exec /command/envdir ./env /usr/lib/inet/dsvclockd -f
#!/bin/sh if /command/svok /service/dsvclockd; then /usr/bin/sleep 2 # wait to make sure dsvclockd is initialized exec 2>&1 exec /command/envdir ./env /usr/lib/inet/in.dhcpd -b manual -d # -v fi echo dsvclockd is not running - aborting exec /usr/bin/sleep 5The in.dhcpd service needs a log service to be set up.
#!/bin/sh exec 2>&1 exec dropbear -F -E -p 22This service needs a log service to be set up.
(Linux, running under tcpsvd)
#!/bin/sh exec 2>&1 exec tcpsvd -v -i./peers 0 22 dropbear -i -EThis service needs a log service to be set up.
#!/bin/sh exec /usr/local/sbin/exim -bdf -q30m
#!/bin/sh echo -n . exec sleep 300
#!/bin/sh exec 2>&1 exec /usr/bin/fam -L -f -vThis service needs a log service to be set up.
#!/bin/sh exec 2>&1 exec /usr/sbin/fcron -f -yThis service needs a log service to be set up.
#!/bin/sh exec gdm -nodaemon
#!/bin/sh exec mingetty tty5The runit package does not care about utmp records for getties. You should choose a getty that handles its own utmp and wtmp records. Debian's mingetty creates its own utmp record.
#!/bin/sh exec /sbin/agetty 38400 tty1 linux
#!/bin/sh exec chpst -P fgetty tty4The runsv program does not automatically create a new session and separate process group for run scripts, which can cause some getties to fail due to limited permissions. The chpst program can be used to alter the process state for those getties.
#!/bin/sh exec 2>&1 . /etc/sysconfig/mouse exec gpm -D -m $MDEVICE -t $PROTOCOL
#!/bin/sh exec 2>,&1 exec tcpsvd -l0 -u nobody 127.0.0.1 110 /usr/sbin/hotwayd
#!/bin/sh exec 2>&1 exec oidentd -i -S -t 10 -u daemon -g daemonThis service needs a log service to be set up.
(Debian)
#!/bin/sh exec /usr/local/sbin/oidentd --nosyslog -i -u ident -g ident -l 15 -m \ -C /etc/oidentd/oidentd.conf 2>&1This service needs a log service to be set up.
#!/bin/sh MEM="`head -1 ./env/MEM`" exec softlimit -m "${MEM}" \ setuidgid news \ /usr/sw/bin/news/inndstart -f -r
#!/bin/sh exec 2>&1 if [ -f /usr/local/jabber/jabber.pid ]; then rm /usr/local/jabber/jabber.pid fi exec /usr/local/bin/setuidgid jabberd \ /usr/local/jabber/jabberd/jabberd -D -c /etc/jabber.xmlThis service needs a log service to be set up.
#!/bin/sh exec 2>&1 sleep 5 # so that jit starts after jabberd is up exec /usr/local/bin/setuidgid jabberd \ /usr/local/jabber/jit/jabberd/jabberd -c /etc/jit.xmlThis service needs a log service to be set up.
#!/bin/sh exec 2>&1 exec keepalived -n
#!/bin/sh exec /sbin/klogd -n
#!/bin/sh exec 2>&1 exec envuidgid news \ tcpserver -v -x rules.cdb -c 10 -U 0 119 \ leafnodeThis service needs a log service to be set up.
#!/bin/sh -e exec < /proc/kmsg \ setuidgid loguser \ multilog t n64 ./main
#!/bin/sh exec 2>&1 exec envuidgid nobody \ tcpserver -vUR 0 113 \ timeoutafter 60 \ minidentd -vThis service needs a log service to be set up.
#!/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(LFS)
#!/bin/sh exec 2>&1 exec /usr/sbin/mysqld -u mysql(Debian, ``It's an ugly hack, but it works'')
#!/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
#!/bin/sh MEM="`head -1 ./env/MEM`" exec softlimit -m ${MEM} \ ntpd -n -p /var/run/ntpd.pid
#!/bin/sh exec 2>&1 exec setuidgid polipo \ polipo -c config forbiddenFile="`pwd`"/forbidden diskCacheRoot="`pwd`"/cacheThis service needs a log service to be set up.
#!/bin/sh exec /usr/local/bin/tcpserver -R -v -c 50 0 995 /usr/local/sbin/stunnel -f -p /etc/ssl/stunnel.pem \ -l /var/qmail/bin/qmail-popup -- /var/qmail/bin/qmail-popup "`cat /var/qmail/control/me`" vchkpw /var/qmail/bin/qmail-pop3d Maildir 2>&1This service needs a log service to be set up.
#!/bin/sh exec 2>&1 exec /usr/local/bin/setuidgid pop3vscan /usr/sbin/pop3vscan -dThis service needs a log service to be set up.
#!/bin/sh exec 2>&1 exec /sbin/portmap -d
#!/bin/sh exec setuidgid postgres /usr/lib/postgresql/bin/postmaster \ -D /var/lib/postgres/data 2>&1This service needs a log service to be set up.
#!/bin/sh exec 2>&1 echo "ppp -ddial dsl " exec /usr/sbin/ppp -unit0 -foreground dsl
#!/bin/sh exec 2>&1 exec chpst -P pppd call isp nodetach
#!/bin/sh exec 2>&1 exec proftpd -n -d 1This service needs a log service to be set up.
#!/bin/sh exec 2>&1 exec /usr/sbin/pure-ftpd -a 50 -E -l pam -u 100
#!/bin/sh exec 2>&1 exec radiusd -f -y -z -lstdoutThis service needs a log service to be set up.
#!/bin/sh exec 2>&1 exec softlimit -d 100000000 /usr/local/bin/tcpserver \ -x /pack/rsync/rsync.service/tcp.rsync.cdb -v -c 100 -U -H -l 0 -R \ 1.2.3.4 873 nice -2 /pack/rsync/bin/rsync --daemon --no-detach \ --config /pack/rsync/etc/rsyncd.confThis service needs a log service to be set up.
#!/bin/sh PATH="/usr/local/samba/bin" exec 2>&1 exec smbd -F -S -d3This service needs a log service to be set up.
#!/bin/sh PATH="/usr/local/samba/bin" exec 2>&1 exec nmbd -F -S -d1This service needs a log service to be set up.
#!/bin/sh exec 2>&1 exec /usr/local/bin/setuidgid sc_serv \ /usr/local/sc_serv/bin/sc_serv /etc/sc_serv.confThis service needs a log service to be set up.
#!/bin/sh exec /usr/sbin/spamd -m 20 -a -H -s stderr 2>&1This service needs a log service to be set up.
#!/bin/sh exec squid -f ./config -sN
#!/bin/sh exec 2>&1 exec sshd -D -eThis service needs a log service to be set up.
#!/bin/sh -e exec 2>&1 exec \ tcpserver -1vpdl0 -Xxtcp.cdb 0 ssh \ sshd -ief configThis service needs a log service to be set up.
#!/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 -dThis service needs a log service to be set up.
#!/bin/sh svwaitup /var/service/statd 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 /usr/sbin/exportfs -r /usr/sbin/rpc.nfsd -- $RPCNFSDCOUNT /usr/bin/rpcinfo -u localhost nfs 3 >/dev/null 2>&1 || RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" /usr/sbin/rpc.mountd -F $RPCMOUNTDOPTS
#!/bin/sh exec /usr/local/sbin/stunnel -f -d 1234 -r 25 -v3 -a /etc/ssl/mailcerts 2>&1
#!/bin/sh exec 2>&1 exec tcpsvd -l0 127.0.0.1 901 /usr/sbin/swat
#!/bin/sh exec 2>&1 exec setuidgid taiclock /usr/local/clockspeed/bin/taiclockd
#!/bin/sh exec /usr/local/tmda/bin/tmda-ofmipd -f -d -R pop3 -p my.host.name:8025 2>&1This service needs a log service to be set up.
#!/bin/sh exec 2>&1 exec \ setuidgid apache \ /pack/tomcat/current/bin/catalina.sh run
#!/bin/sh exec 2>&1 exec /usr/local/bin/tcpserver -c30 -Xv -llocalhost \ -x/etc/tcp.ftp.cdb -uvsftpd -gvsftpd 0 ftp \ softlimit -d300000 /var/vsftpd/bin/vsftpdThis service needs a log service to be set up.
#!/bin/sh exec 2>&1 exec wvdial ISPThis service needs a log service to be set up.
#!/bin/sh svwaitup -s 2 /service/vc-* exec xdm -nodaemon