bridgestart
Cyclone-R01-dist/bridgestart · 605 B
From the archive Cyclone-R01.tar.gz
Download the archive « Back to the archive contents
#! /bin/csh -f
# Set limits.
if ( -e shutdown ) rm -f shutdown
limit coredumpsize unlimited
limit stacksize unlimited
while ( 1 )
# If you want to have logs in a different directory,
# change the 'set logfile' line to reflect the directory name.
set index = 1000
while ( 1 )
set logfile = logs/$index.log
if ( ! -e $logfile ) break
@ index++
end
# Record starting time
date > $logfile
# Run IMC2 Router.
./bridge >&! $logfile
# Restart, giving old connections a chance to die.
if ( -e shutdown ) then
rm -f shutdown
exit 0
endif
sleep 5
end