Index: trunk/MagicSoft/Mars/datacenter/scripts/dowebplots
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/dowebplots	(revision 7562)
+++ trunk/MagicSoft/Mars/datacenter/scripts/dowebplots	(revision 7563)
@@ -50,8 +50,4 @@
 date >> $scriptlog 2>&1
 
-# check if script is already running
-lockfile=$lockpath/lock-dowebplots.txt
-checklock  >> $scriptlog 2>&1
-
 
 while getopts p: opts
@@ -70,8 +66,11 @@
    echo "no program name given -> exit"  >> $scriptlog 2>&1
    echo "usage: $(basename $0) -p programname"   >> $scriptlog 2>&1
-   rm -v $lockfile >> $scriptlog 2>&1
    date  >> $scriptlog 2>&1
    exit
 fi
+
+# check if script is already running
+lockfile=$lockpath/lock-dowebplots-$type.txt
+checklock  >> $scriptlog 2>&1
 
 
