Index: trunk/MagicSoft/Mars/datacenter/scripts/makecallistolinks
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/makecallistolinks	(revision 7476)
+++ trunk/MagicSoft/Mars/datacenter/scripts/makecallistolinks	(revision 7477)
@@ -34,4 +34,5 @@
 
 user=`whoami`
+program=makecallistolinks
 source /home/$user/Mars/datacenter/scripts/sourcefile
 
@@ -41,12 +42,12 @@
 callistorcnew=callisto_Dec04Jan05.rc
 
-scriptlogpath=$logpath/run/makecallistolinks/`date +%Y/%m/%d`
+scriptlogpath=$logpath/run/$program/`date +%Y/%m/%d`
 makedir $scriptlogpath
-scriptlog=$scriptlogpath/makingcallistolinks`date +%F`.log
+scriptlog=$scriptlogpath/$program`date +%F`.log
 
 date >> $scriptlog 2>&1
 
 # check if script is already running
-lockfile=$lockpath/lock-making-callisto-links.txt
+lockfile=$lockpath/lock-$program.txt
 date > $lockfile >> $scriptlog 2>&1 
 checklock0=$?
@@ -54,5 +55,5 @@
     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
-         echo "-> makecallistolinks is running -> exit" >> $scriptlog 2>&1
+         echo "-> $program is running -> exit" >> $scriptlog 2>&1
          date  >> $scriptlog 2>&1
          exit;;
