#! /bin/sh # Simple httpd answering machine - usefull while maintenance,... # 1995/5 by Laurent Demailly - dl@hplyot.obspm.fr - http://hplyot.obspm.fr/~dl/ # Latest version on http://hplyot.obspm.fr/~dl/wwwtools.html # Installation: # assuming you have # www 80/tcp # (change 80 to whatever your regular httpd runs on) # in /etc/services # Put # www stream tcp nowait httpd /usr/local/etc/busy busy # in /etc/inetd.conf # chmod 755 /usr/local/etc/busy # kill your regular httpd, kill -1 inetd, and you're done ! cat << _EOF_ HTTP/1.0 503 Server Down Server: dlsh/0.1 Retry-After: 600