Changeset 7918


Ignore:
Timestamp:
08/22/06 23:03:41 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter/scripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/jobmanager

    r7914 r7918  
    3838   for (( i=0 ; i < ${#scripts[@]} ; i++ ))
    3939   do
    40       date  >> $scriptlog 2>&1
    41       echo "sleeping $sleeptime..." >> $scriptlog 2>&1
     40      makedir $jmlogpath
     41      date  >> $jmscriptlog 2>&1
     42      echo "sleeping $sleeptime..." >> $jmscriptlog 2>&1
    4243      sleep $sleeptime
    4344      dayofweek=`date +%u`
    4445      hour=`date +%k`
    4546      source `dirname $0`/sourcefile
    46       echo "script: ${scripts[$i]}" >> $scriptlog 2>&1
    47 #      echo " day: $dayofweek hour: $hour" >> $scriptlog 2>&1
     47      echo "script: ${scripts[$i]}" >> $jmscriptlog 2>&1
     48#      echo " day: $dayofweek hour: $hour" >> $jmscriptlog 2>&1
    4849      queued=`/usr/local/bin/condor_q -global -format "%s\n" Owner | grep -c $user`
    4950      queued=`setzero $queued`
     
    5960      num=`echo "((( $i + 1 ) * 24 ) + ( $hour + 1 ) ) - 24 - 1 " | bc `
    6061      pnoscript=${pnos[$num]}
    61       echo " found $queued jobs in the queue (incl. running jobs) [allowed $pnototal]" >> $scriptlog 2>&1
    62       echo " found $queuedscript ${scripts[$i]} in the queue (incl. running jobs) [allowed $pnoscript]" >> $scriptlog 2>&1
    63 #      echo "  => num=$num => pnoscript=$pnoscript (i.e. $pnoscript ${scripts[$i]} allowed)" >> $scriptlog 2>&1
     62      echo " found $queued jobs in the queue (incl. running jobs) [allowed $pnototal]" >> $jmscriptlog 2>&1
     63      echo " found $queuedscript ${scripts[$i]} in the queue (incl. running jobs) [allowed $pnoscript]" >> $jmscriptlog 2>&1
     64#      echo "  => num=$num => pnoscript=$pnoscript (i.e. $pnoscript ${scripts[$i]} allowed)" >> $jmscriptlog 2>&1
    6465     
    6566      if [ "$queued" -gt "$pnototal" ]
     
    7576      # get todofile
    7677      lockfile=$lockpath/lock-getting-${script[$i]}-list.txt
    77       checklock  >> $scriptlog 2>&1
     78      checklock  >> $jmscriptlog 2>&1
    7879      singleprocess="yes"
    7980      gettodo
    80       rm -v $lockfile >> $scriptlog 2>&1
     81      rm -v $lockfile >> $jmscriptlog 2>&1
    8182
    8283      date=`date +%Y/%m/%d`
    8384      date2=`date +%Y-%m-%d`
    8485      condordir=$logpath/condor/$date
    85       makedir $condordir >> $scriptlog 2>&1
     86      makedir $condordir >> $jmscriptlog 2>&1
    8687     
    87       if ! /usr/local/bin/condor_submit -a path=$scriptspath -a prog=${scripts[$i]} -a date=$date2 -a dir=$condordir $scriptspath/run.condor 2>$errorlog
     88      if ! /usr/local/bin/condor_submit -a path=$scriptspath -a prog=${scripts[$i]} -a date=$date2 -a dir=$condordir $scriptspath/run.condor 2>$jmerrorlog
    8889      then
    89          date >> $errorlog
    90          nail -s 'condor problem'  $erradrs < $errorlog
    91          echo "condor is not working -> sleeping $errorsleeptime" >> $scriptlog 2>&1
     90         date >> $jmerrorlog
     91         nail -s 'condor problem'  $erradrs < $jmerrorlog
     92         echo "condor is not working -> sleeping $errorsleeptime" >> $jmscriptlog 2>&1
    9293         sleep $errorsleeptime
    9394      fi
    94       echo "" >> $scriptlog 2>&1
     95      echo "" >> $jmscriptlog 2>&1
    9596   done
    9697done
  • trunk/MagicSoft/Mars/datacenter/scripts/scriptlauncher

    r7914 r7918  
    3030source `dirname $0`/sourcefile
    3131
    32 errorlog=$logpath/scriptlauncher/`date +%Y/%m`/error`date +%F`.log
    33 scriptslog=$logpath/scriptlauncher/`date +%Y/%m`/jobmanager`date +%F`.log
     32sllogpath=$logpath/scriptlauncher/`date +%Y/%m`
     33makedir $sllogpath
     34errorlog=$sllogpath/error`date +%F`.log
     35scriptslog=$logpath/scriptlauncher`date +%F`.log
    3436
    3537date  >> $scriptlog 2>&1
  • trunk/MagicSoft/Mars/datacenter/scripts/setup

    r7915 r7918  
    5757#log files (can't be defined in script itself, as script can run longer
    5858#than one day
    59 errorlog=$logpath/jobmanager/`date +%Y/%m`/error`date +%F`.log
    60 scriptslog=$logpath/jobmanager/`date +%Y/%m`/jobmanager`date +%F`.log
     59jmlogpath=$logpath/jobmanager/`date +%Y/%m`
     60jmerrorlog=$jmlogpath/error`date +%F`.log
     61jmscriptslog=$jmlogpath/jobmanager`date +%F`.log
    6162
    6263scripts=( "runcallisto" "runstar" "runganymed" "dodatacheck" )
Note: See TracChangeset for help on using the changeset viewer.