startup

aoh/src/startup · 461 B

From the archive aoh-1.2.tar.gz

Download the archive   « Back to the archive contents

#! /bin/csh -f

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

nice
limit coredumpsize 8128k
limit filesize 16256k
if ( -e ../txt/shutdown.txt ) rm -f ../txt/shutdown.txt

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

    cd ../area
    ../src/aoh $port >&! $logfile

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

Site Stats

Snippets: 1791
Codebases: 571