Skip to content

Commit

Permalink
multiOJ.sh will allow you to run many instances
Browse files Browse the repository at this point in the history
put all your OJs home dir under same PATH
run  multiOJ.sh PATH with nohup & or screen -d -m
this should allow you to run dozens HUSTOJ instances in same VPS system 
the catch is the judge-response may slow down for each OJ
because they will be all in the same job queue
  • Loading branch information
zhblue committed Mar 10, 2015
1 parent c4f2752 commit 9df1a44
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions trunk/install/ multiOJ.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function judge_round(){

for config in `sudo find -O2 "$1" -name judge.conf`
do
etc=`dirname "$config"`
home=`dirname "$etc"`
sudo judgeonce "$home" debug 1
done
}
while [ 1 ]
do
judge_round $1
done

0 comments on commit 9df1a44

Please sign in to comment.