[Swift-commit] r3630 - SwiftApps/SwiftR/Swift/exec

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Fri Sep 17 16:28:58 CDT 2010


Author: wilde
Date: 2010-09-17 16:28:58 -0500 (Fri, 17 Sep 2010)
New Revision: 3630

Modified:
   SwiftApps/SwiftR/Swift/exec/start-swift-workers
Log:
Put remote worker log on local /tmp.

Modified: SwiftApps/SwiftR/Swift/exec/start-swift-workers
===================================================================
--- SwiftApps/SwiftR/Swift/exec/start-swift-workers	2010-09-17 20:37:40 UTC (rev 3629)
+++ SwiftApps/SwiftR/Swift/exec/start-swift-workers	2010-09-17 21:28:58 UTC (rev 3630)
@@ -26,7 +26,8 @@
   echo Coaster contact: $CONTACT
 
   LOGDIR=$(pwd)/swiftworkerlogs # full path. FIXME: Generate this with remote-side paths if not shared dir env?
-  mkdir -p $LOGDIR
+  LOGDIR=/tmp/$USER/SwiftR/swiftworkerlogs 
+#  mkdir -p $LOGDIR # moved this to the ssh command
 
   IDLETIMEOUT=$((60*60*240)) # 10 days: FIXME: make this a command line arg
 
@@ -35,7 +36,7 @@
     random=$(awk "BEGIN {printf \"%0.5d\", $RANDOM}")
     ID=$timestamp.$random
        # FIXME: make logging an argument; set false by default
-       ssh $host '/bin/sh -c '\'"WORKER_LOGGING_ENABLED=true $SWIFTBIN/worker.pl $CONTACT $ID $LOGDIR $IDLETIMEOUT 2>&1 & echo PID=\$!"\'  >remotepid.$host </dev/null &
+       ssh $host '/bin/sh -c '\'"mkdir -p $LOGDIR; WORKER_LOGGING_ENABLED=true $SWIFTBIN/worker.pl $CONTACT $ID $LOGDIR $IDLETIMEOUT 2>&1 & echo PID=\$!"\'  >remotepid.$host </dev/null &
        sshpids="$sshpids $!"
   done
 




More information about the Swift-commit mailing list