Changeset 7944 for trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
- Timestamp:
- 08/25/06 22:09:49 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
r7936 r7944 39 39 webpath=/www/htdocs/datacenter 40 40 41 processlogpath=$logpath/run/`date +%Y/%m/%d` 42 processlog=$processlogpath/process`date +%F`.log 41 runlogpath=$logpath/run/`date +%Y/%m/%d` 42 makedir $runlogpath 43 processlog=$runlogpath/process`date +%F`.log 43 44 44 45 datetime=`date +%F-%H-%M-%S` … … 76 77 # setup for jobmanager 77 78 # 79 #log files (can't be defined in script itself, as script can run longer 80 #than one day 81 jmerrorlog=$runlogpath/jobmanager-error`date +%F`.log 82 jmscriptlog=$runlogpath/jobmanager`date +%F`.log 78 83 steps=$mars/steps.rc 79 84 # resetting values … … 120 125 rm -v $lockfile 121 126 date 127 printprocesslog "INFO finished $program" 122 128 exit 123 129 } … … 234 240 ;; 235 241 *) echo "error -> exit" 236 exit 242 printprocesslog "ERROR function evalstatus got wrong variable" 243 finish 237 244 ;; 238 245 esac … … 304 311 if ! process=`mysql -s -u $us --password=$pw --host=hercules $db -e " $query "` 305 312 then 306 echo "ERROR could not query process from db -> exit" 313 echo "ERROR could not query processes from db -> exit" 314 printprocesslog "ERROR could not query processes from db (program: $program, function getdolist)" 307 315 finish 308 316 fi … … 318 326 then 319 327 echo "$todofile exists already" 328 printprocesslog "WARN $todofile exists already (program: $program, function getdolist)" 320 329 finish 321 330 fi … … 349 358 then 350 359 echo "ERROR could not query process from db -> exit" 360 printprocesslog "ERROR could not query process from db (program: $program, function gettodo)" 351 361 finish 352 362 fi … … 384 394 then 385 395 echo "ERROR could not query number of todo proceses from db -> continue" 396 printprocesslog "ERROR could not query number of processes from db (program: $program, function getstatus)" 386 397 cont 387 398 fi … … 400 411 then 401 412 echo "YOU CAN'T RESET $column for $var2!!!" 413 printprocesslog "ERROR you can't reset $column for $var2" 402 414 finish 403 415 fi … … 416 428 then 417 429 echo "ERROR could not insert status into db -> exit" 418 finish 419 fi 420 421 } 430 printprocesslog "ERROR could not set status in db (program: $program, function setstatus)" 431 finish 432 fi 433 434 }
Note:
See TracChangeset
for help on using the changeset viewer.