- Timestamp:
- 08/13/09 13:28:51 (15 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r9488 r9489 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2009/08/13 Daniela Dorner 22 23 * datacenter/scripts/setup.isdc.cta, 24 datacenter/scripts/setup.wue.magic.data, 25 datacenter/scripts/setup.wue.magic.mc: 26 - added (setup files with different default settings for usage with 27 $AUTOMATIONSETUP) 28 29 * datacenter/scripts/sourcefile: 30 - moved variables for resourcefiles steps.rc and sql.rc to setup.* 31 - removed function cont() 32 - added check if setup.* is existing 33 34 * datacenter/scripts/jobmanager: 35 - removed command line options (done now via environment variable 36 $AUTOMATIONSETUP) 37 - moved arrays $scripts, $scriptscolname, $pnosweek, $pnoswe to 38 setup.* 39 40 20 41 21 42 2009/08/12 Daniela Dorner -
trunk/MagicSoft/Mars/NEWS
r9482 r9489 99 99 * new feature in showplots*.php: on mouse-over additional information 100 100 on the sequence is displayed 101 102 ;automation: 103 104 * jobmanager can be used more flexible now: via environnent variable 105 $AUTOMATIONSETUO more than one jobmanager per user can be started 106 using the same MARS version 107 Usage: export AUTOMATIONSETUP=mysetup ; /fullpath/jobmanager 108 and provide a file Mars/datacenter/scripts/setup.mysetup 101 109 102 110 -
trunk/MagicSoft/Mars/datacenter/scripts/jobmanager
r9488 r9489 20 20 # Author(s): Daniela Dorner 05/2006 <mailto:dorner@astro.uni-wuerzburg.de> 21 21 # 22 # Copyright: MAGIC Software Development, 2000-200 722 # Copyright: MAGIC Software Development, 2000-2009 23 23 # 24 24 # … … 45 45 echo "" >> $jmscriptlog 2>&1 46 46 echo "" >> $jmscriptlog 2>&1 47 echo -n `date +%F\ %T`" starting jobmanager for setup " >> $jmscriptlog 2>&1 48 49 # decide which jobmanager you want to run 50 # setup of the different jobmanagers (which scripts they start) 51 # the number of jobs are defined in the file setup 52 case $1 in 53 data) echo -n "'data'" >> $jmscriptlog 2>&1 54 scripts=( "runganymed" "runstar" "runcallisto" ) # not used: "dodatacheck" "cutslices" 55 scriptscolname=( "fGanymed" "fStar" "fCallisto" ) # not used: "fDataCheckDone" "fCompmux" 56 pnosweek=( ${pnoganymed[@]} ${pnostar[@]} ${pnocallisto[@]} ) # not used: ${pnodatacheck[@]} ${pnocutslices[@]} 57 pnoswe=( ${pnoganymedwe[@]} ${pnostarwe[@]} ${pnocallistowe[@]} ) # not used: ${pnodatacheckwe[@]} ${pnocutsliceswe[@]} 58 break 59 ;; 60 mc) echo -n "'mc'" >> $jmscriptlog 2>&1 61 scripts=( "runcorsika" "runreflector" "runcamera" ) 62 scriptscolname=( "fCorsikaFileAvail" "fReflectorFileAvail" "fCameraFileAvail" ) 63 pnosweek=( ${pnocorsika[@]} ${pnoreflector[@]} ${pnocamera[@]} ) 64 pnoswe=( ${pnocorsikawe[@]} ${pnoreflectorwe[@]} ${pnocamerawe[@]} ) 65 break 66 ;; 67 ctamc) echo -n "'cta mc'" >> $jmscriptlog 2>&1 68 scripts=( "runsimtel" ) 69 scriptscolname=( "fCorsikaSimTelarray" ) 70 pnosweek=( ${pnosimtel[@]} ) 71 pnoswe=( ${pnosimtelwe[@]} ) 72 break 73 ;; 74 *) echo "" 75 echo "'$1' is a wrong commandline option for jobmanager -> exit" >> $jmscriptlog 2>&1 76 echo "'$1' is a wrong commandline option for jobmanager -> exit" 77 printprocesslog "WARN '$1' is a wrong commandline option for jobmanager" 78 finish >> $jmscriptlog 2>&1 79 break 80 ;; 81 esac 47 echo -n `date +%F\ %T`" starting jobmanager for setup "$AUTOMATIONSETUP >> $jmscriptlog 2>&1 82 48 83 49 # choose commands according to queueing system (defined in setup) -
trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
r9456 r9489 38 38 fi 39 39 40 source `dirname $0`/setup 41 42 mars=`dirname $0 | sed -e 's/\/datacenter\/scripts//'` 43 macrospath=$mars/datacenter/macros 44 scriptspath=$mars/datacenter/scripts 40 if [ "$AUTOMATIONSETUP" = "" ] 41 then 42 echo "Please set the environment variable \$AUTOMATIONSETUP." 43 exit 44 fi 45 46 source `dirname $0`/setup.$AUTOMATIONSETUP 45 47 46 48 datetime=`date +%F-%H-%M-%S` … … 157 159 jmerrorlog=$runlogpath/jobmanager-error`date +%F`.log 158 160 jmscriptlog=$runlogpath/jobmanager`date +%F`.log 159 steps=$mars/resources/steps.rc 161 162 # check if rc-files are available 160 163 if ! ls $steps >/dev/null 161 164 then … … 163 166 finish 164 167 fi 165 sqlrc=$mars/sql.rc166 168 if ! ls $sqlrc >/dev/null 167 169 then … … 169 171 finish 170 172 fi 173 171 174 # resetting values 172 175 pno=0 … … 186 189 # in the following the functions, which are needed by several scripts, are 187 190 # defined 188 189 # function to do continue in a loop and produce according logging190 function cont()191 {192 date193 echo ""194 continue195 }196 191 197 192 # function to check if a process is already locked … … 368 363 then 369 364 printprocesslog "ERROR could not query number of processes from db (program: $program, function getstatus)" 370 cont 365 echo `date +%F\ %T`" ERROR could not query number of processes from db (program: $program, function getstatus)" 366 continue 371 367 fi 372 368 }
Note:
See TracChangeset
for help on using the changeset viewer.