[Swift-commit] r6003 - trunk/bin
davidk at ci.uchicago.edu
davidk at ci.uchicago.edu
Tue Oct 30 14:50:17 CDT 2012
Author: davidk
Date: 2012-10-30 14:50:17 -0500 (Tue, 30 Oct 2012)
New Revision: 6003
Modified:
trunk/bin/start-coaster-service
Log:
Change start-coaster-service for condor
- avoid creating multiple submit files
- transfer a copy of worker.pl to the submit host
Modified: trunk/bin/start-coaster-service
===================================================================
--- trunk/bin/start-coaster-service 2012-10-30 19:43:40 UTC (rev 6002)
+++ trunk/bin/start-coaster-service 2012-10-30 19:50:17 UTC (rev 6003)
@@ -275,11 +275,10 @@
export CONDOR_MACHINE_COUNT=1
fi
-export MYPID=$$
-cat <<EOF > start_workers.$MYPID.submit
+cat <<EOF > start_workers.submit
output = workers.stdout
error = workers.stderr
-executable = $SWIFT_BIN/$WORKER
+executable = $WORKER_LOCATION/$WORKER
arguments = $EXECUTION_URL node .
notification = Never
leave_in_queue = FALSE
@@ -289,10 +288,11 @@
EOF
if [ -n "$WORKER_RELAY_HOST" ]; then
- scp start_workers.$MYPID.submit $WORKER_USERNAME@$WORKER_RELAY_HOST:
- ssh $WORKER_USERNAME@$WORKER_RELAY_HOST "condor_submit start_workers.$MYPID.submit"
+ scp start_workers.submit $WORKER_USERNAME@$WORKER_RELAY_HOST:
+ scp $SWIFT_BIN/$WORKER $WORKER_USERNAME@$WORKER_RELAY_HOST:$WORKER_LOCATION > /dev/null 2>&1
+ ssh $WORKER_USERNAME@$WORKER_RELAY_HOST "condor_submit start_workers.submit"
else
- condor_submit start_workers.$MYPID.submit
+ condor_submit start_workers.submit
fi
}
More information about the Swift-commit
mailing list