cd area
while ( true )
do
    ../src/smaug 4040 > ../log/logfile

    # Restart, giving old connections a chance to die.
    if ( ls -a shutdown.txt ) then
	rm -f shutdown.txt
	exit 0
    fi
    sleep 6

done
