#! /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

<HEAD><TITLE>Server Down</TITLE>
<link rev="made" href="mailto:webmaster@your.site">
</HEAD>
<BODY>
<H1>Server Down</H1>
The server is currently down, please retry later.
<HR>
<ADDRESS>
<A href="mailto:webmaster@your.site">webmaster@your.site</a>
</ADDRESS>
</BODY>
_EOF_
