Index: trunk/MagicSoft/Mars/datacenter/scripts/runcallisto
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/runcallisto	(revision 8520)
+++ trunk/MagicSoft/Mars/datacenter/scripts/runcallisto	(revision 8525)
@@ -27,12 +27,17 @@
 # This script is launching the calibration of sequences. 
 # 
-# In the case of calibration only one sequence is processed. Despite of 
-# that the structure of the script is such, that also more sequences could
-# be processed. The restriction to one sequence has been made, as the 
-# calibration takes some time. There's one todo file per sequence. 
-# First the script searches for a todo file. Then the sequence from this 
-# todo file is calibrated and the merpp update is done. 
+# As callisto takes some time, only one sequence is processed at once. 
+# First the script gets a sequence number from the database, for which 
+# the calibration has to be done (function gettodo). After setting the 
+# status in the database (set fStartTime to know, that the sequence is 
+# already being processed), the sequence is calibrated and the merpp 
+# update is done. Afterwards the status in the database is updated 
+# according to the return value of the program. In case one of the merpp 
+# update failes, also the corresponding runnumber is inserted into the 
+# database. 
+# The important INFOs, WARNings and ERRORs are written not only to the 
+# scriptlog but also to the processlog. 
 # 
-# the callisto.rc files are stored in the setup directory
+# The callisto.rc files are stored in the setup directory
 #
 
Index: trunk/MagicSoft/Mars/datacenter/scripts/runganymed
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/runganymed	(revision 8520)
+++ trunk/MagicSoft/Mars/datacenter/scripts/runganymed	(revision 8525)
@@ -27,12 +27,15 @@
 # This script is launching ganymed for datasets.
 # 
-# In the case of ganymed only one dataset is processed. Despite of 
-# that the structure of the script is such, that also more datasets could
-# be processed. The restriction to one dataset has been made, as ganymed 
-# takes some time. There's one todo file per dataset. 
-# First the script searches for a todo file. Then ganymed is run for the 
-# dataset from this todo file. 
+# As ganymed takes some time, only one dataset is processed at once. 
+# First the script gets a dataset number from the database, for which 
+# ganymed has to be done (function gettodo). After setting the status in 
+# the database (set fStartTime to know, that the dataset is already being 
+# processed), the background suppression is done for the dataset. 
+# Afterwards the status in the database is updated according to the return 
+# value of ganymed. 
+# The important INFOs, WARNings and ERRORs are written not only to the 
+# scriptlog but also to the processlog. 
 #
-# the ganymed.rc files are stored in the setup directory
+# The ganymed.rc files are stored in the setup directory.
 #
 
Index: trunk/MagicSoft/Mars/datacenter/scripts/runstar
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/runstar	(revision 8520)
+++ trunk/MagicSoft/Mars/datacenter/scripts/runstar	(revision 8525)
@@ -25,14 +25,17 @@
 # ========================================================================
 #
-# This script is launching star for sequence.
+# This script is launching star for sequences.
 # 
-# In the case of star only one sequence is processed. Despite of 
-# that the structure of the script is such, that also more sequences could
-# be processed. The restriction to one sequence has been made, as star
-# takes some time. There's one todo file per sequence. 
-# First the script searches for a todo file. Then star is run for the 
-# sequence from this todo file. 
-#
-# the star.rc files are taken from the mars directory
+# As star takes some time, only one sequence is processed at once. 
+# First the script gets a sequence number from the database, for which 
+# star has to be done (function gettodo). After setting the status in the 
+# database (set fStartTime to know, that the sequence is already being 
+# processed), the image parameters are calculated for the sequence. 
+# Afterwards the status in the database is updated according to the return 
+# value of star. 
+# The important INFOs, WARNings and ERRORs are written not only to the 
+# scriptlog but also to the processlog. 
+# 
+# The star.rc file is taken from the Mars directory.
 #
 
Index: trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/sourcefile	(revision 8520)
+++ trunk/MagicSoft/Mars/datacenter/scripts/sourcefile	(revision 8525)
@@ -51,6 +51,12 @@
       then 
          echo "could not make dir "$@
-         rm -v $todofile
-         rm -v $lockfile
+         if ! [ "$todofile" = "" ] && ls $todofile >/dev/null 2>&1
+         then 
+            rm -v $todofile
+         fi
+         if ls $lockfile >/dev/null 2>&1
+         then 
+            rm -v $lockfile
+         fi
          date
          exit
