swr2.0/
swr2.0/area/
swr2.0/boards/
swr2.0/clans/
swr2.0/doc/
swr2.0/planets/
swr2.0/spacecraft/
#! /bin/csh -f

set port = 8504
if ( "$1" != "" ) set port="$1"

nohup
nice
limit stack 1024k
if ( -e shutdown.txt ) rm -f shutdown.txt

while ( 1 )
#    set index = 1000
#    while ( 1 )
#	set logfile = log/$index.log
#	if ( ! -e $logfile ) break
#	@ index++
#    end

#    date > $logfile
#    date > boot.txt

    ./swr $port

    if ( -e shutdown.txt ) then
	rm -f shutdown.txt
	exit 0
    endif
    sleep 15
end