[Swift-commit] r7291 - branches/release-0.94/bin

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Thu Nov 14 13:57:06 CST 2013


Author: davidk
Date: 2013-11-14 13:57:05 -0600 (Thu, 14 Nov 2013)
New Revision: 7291

Modified:
   branches/release-0.94/bin/start-coaster-service
Log:
Allow user to define WORKER location that may not exist locally (allows you to run on OSG connect using condor file transfer of worker.pl)


Modified: branches/release-0.94/bin/start-coaster-service
===================================================================
--- branches/release-0.94/bin/start-coaster-service	2013-11-14 04:53:24 UTC (rev 7290)
+++ branches/release-0.94/bin/start-coaster-service	2013-11-14 19:57:05 UTC (rev 7291)
@@ -82,7 +82,9 @@
 
 # Determine the location of needed files
 export SWIFT_BIN="$( cd "$( dirname "$0" )" && pwd )"
-export WORKER="$SWIFT_BIN/worker.pl"
+if [ -z "$WORKER" ]; then
+   export WORKER="$SWIFT_BIN/worker.pl"
+fi
 export WORKER_LOGGING_LEVEL="NONE"
 export PID_FILE="$HOME/.swift/.coaster-service-pids"
 export COASTER_SERVICE="$SWIFT_BIN/coaster-service"
@@ -117,9 +119,9 @@
 echo Service address: $IPADDR
 
 # Verify worker script is there
-if [ ! -x "$WORKER" ]; then
-   crash "Error: Unable to find worker $WORKER!"
-fi
+#if [ ! -x "$WORKER" ]; then
+#   crash "Error: Unable to find worker $WORKER!"
+#fi
 
 # Verify we can find coaster service
 if [ ! -x "$COASTER_SERVICE" ]; then




More information about the Swift-commit mailing list