]>
git.gir.st - ttxd.git/blob - src/thttpd-2.27/scripts/thttpd_wrapper
3 # thttpd_wrapper - wrapper script for thttpd on FreeBSD
5 # This goes in /usr/local/sbin. It backgrounds itself, and then runs
6 # thttpd in a loop. If thttpd exits then the script restarts it automatically.
8 # The -D flag tells thttpd to *not* put itself into the background,
9 # and the -C flag tells it to get the rest of its configuration from
10 # the specified config file.
14 /usr
/local
/sbin
/thttpd
-D -C /usr
/local
/www
/thttpd_config
15 if [ -f /var
/run
/nologin
] ; then
19 egrep ' thttpd[:\[]' /var
/log
/messages |
21 mail -s "thttpd on `hostname` restarted" root