Index: trunk/MagicSoft/Mars/datacenter/scripts/fillstar
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/fillstar	(revision 7938)
+++ trunk/MagicSoft/Mars/datacenter/scripts/fillstar	(revision 7944)
@@ -35,25 +35,20 @@
 #
 
+source `dirname $0`/sourcefile
+printprocesslog "INFO starting $0"
 program=fillstar
-source `dirname $0`/sourcefile
+column=fFillStar
 
 set -C
 
-column=fFillStar
-
-lockfile=$lockpath/lock-$program.txt
-
-scriptlogpath=$runlogpath/$program
-makedir $scriptlogpath
-scriptlog=$scriptlogpath/run$program-$datetime.log
-
+scriptlog=$runlogpath/run$program-$datetime.log
 date >> $scriptlog 2>&1
 
 # check if the script is already running
+lockfile=$lockpath/lock-$program.txt
 checklock  >> $scriptlog 2>&1
 
 # get todo list
 getdolist  >> $scriptlog 2>&1
-
 
 # retrieve sequences from todo file
@@ -72,4 +67,5 @@
 for sequence in ${sequences[@]}
 do 
+   printprocesslog "INFO starting $program for sequence $sequence"
    no=`printf %08d $sequence | cut -c 0-4`
    no2=`printf %08d $sequence`
@@ -87,9 +83,13 @@
    check2=`root -q -b $macrospath/fillstar.C+\("\"$starfile\""\,kFALSE\) | tee $fillstarlog | grep \(int\) | sed -e 's/.*(int)//'`
    case $check2 in
-      1)   echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 ;;
+      1)   echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 
+           printprocesslog "INFO done fillstar successfully for sequence $sequence"
+           ;;
       0)   echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&1 
+           printprocesslog "WARN connection to DB failed"
            check="no"
            ;;
       *)   echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
+           printprocesslog "ERROR fillstar failed for sequence $sequence"
            com=$Ffillstar
            check=$check2
