[Swift-commit] r5906 - trunk/bin

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Thu Aug 23 13:51:16 CDT 2012


Author: davidk
Date: 2012-08-23 13:51:16 -0500 (Thu, 23 Aug 2012)
New Revision: 5906

Modified:
   trunk/bin/start-coaster-service
Log:
Use unique condor submit file names


Modified: trunk/bin/start-coaster-service
===================================================================
--- trunk/bin/start-coaster-service	2012-08-22 16:08:39 UTC (rev 5905)
+++ trunk/bin/start-coaster-service	2012-08-23 18:51:16 UTC (rev 5906)
@@ -275,7 +275,8 @@
       export CONDOR_MACHINE_COUNT=1
    fi
 
-cat <<EOF > start_workers.submit
+export MYPID=$$
+cat <<EOF > start_workers.$MYPID.submit
 output = workers.stdout
 error = workers.stderr
 executable = $SWIFT_BIN/$WORKER
@@ -288,10 +289,10 @@
 EOF
 
    if [ -n "$WORKER_RELAY_HOST" ]; then
-      scp start_workers.submit $WORKER_USERNAME@$WORKER_RELAY_HOST:
-      ssh $WORKER_USERNAME@$WORKER_RELAY_HOST "condor_submit start_workers.submit"
+      scp start_workers.$MYPID.submit $WORKER_USERNAME@$WORKER_RELAY_HOST:
+      ssh $WORKER_USERNAME@$WORKER_RELAY_HOST "condor_submit start_workers.$MYPID.submit"
    else
-      condor_submit start_workers.submit
+      condor_submit start_workers.$MYPID.submit
    fi
 }
 




More information about the Swift-commit mailing list