[Swift-commit] Cog update

swift at ci.uchicago.edu swift at ci.uchicago.edu
Fri Mar 2 11:00:03 CST 2012


------------------------------------------------------------------------
r3362 | jmwozniak | 2012-03-02 10:58:15 -0600 (Fri, 02 Mar 2012) | 2 lines

Put WORKER_INIT_CMD after reconnect() 

------------------------------------------------------------------------
Index: modules/provider-coaster/resources/worker.pl
===================================================================
--- modules/provider-coaster/resources/worker.pl	(revision 3361)
+++ modules/provider-coaster/resources/worker.pl	(working copy)
@@ -406,11 +406,12 @@
 	if (defined $ENV{"WORKER_COPIES"}) {
 		workerCopies($ENV{"WORKER_COPIES"});
 	}
+
+	reconnect();
+
 	if(defined $ENV{"WORKER_INIT_CMD"}) {
 		worker_init_cmd($ENV{"WORKER_INIT_CMD"});
 	}
-
-	reconnect();
 }
 
 sub logsetup() {
@@ -442,7 +443,7 @@
   my ($cmd) = @_;
   wlog DEBUG, "worker_init_cmd: $cmd\n";
   my $rc = system($cmd);
-  print "rc: $rc\n";
+  print "worker_init_cmd exit code: $rc\n";
 }
 
 sub trim {



More information about the Swift-commit mailing list