Changeset 8160 for trunk/MagicSoft/Mars/datacenter/scripts
- Timestamp:
- 10/25/06 12:47:57 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/jobmanager
r8118 r8160 41 41 # endless loop 42 42 notcount=0 43 nothingtodocount=0 44 nothingtodosleeptime=0 43 45 while (( $notcount < 100 )) 44 46 do … … 55 57 then 56 58 prev=0 57 cont >> $jmscriptlog 2>&1 59 nothingtodocount=`expr $nothingtodocount + 1` 60 if [ $nothingtodocount -lt ${#scripts[@]} ] 61 then 62 cont >> $jmscriptlog 2>&1 63 else 64 if [ $nothingtodosleeptime -lt $sleeptimelimit ] 65 then 66 nothingtodosleeptime=`echo " $nothingtodocount * $sleeptime " | bc` 67 fi 68 echo "sleeping $nothingtodosleeptime" >> $jmscriptlog 2>&1 69 sleep $nothingtodosleeptime 70 cont >> $jmscriptlog 2>&1 71 fi 72 else 73 nothingtodocount=0 58 74 fi 59 75 -
trunk/MagicSoft/Mars/datacenter/scripts/setup
r8118 r8160 62 62 #setup for jobmanager 63 63 sleeptime=30 #30 64 sleeptimelimit=360 #360 64 65 errorsleeptime=60 #60 65 66 max=18 #maximum number of processes
Note:
See TracChangeset
for help on using the changeset viewer.