[LON-CAPA-cvs] cvs: loncom / loncron

albertel lon-capa-cvs-allow@mail.lon-capa.org
Tue, 12 Jun 2007 23:50:39 -0000


albertel		Tue Jun 12 19:50:39 2007 EDT

  Modified files:              
    /loncom	loncron 
  Log:
  - some maxima's want to figure out what dir we are in, and blowup on
    intialization if it's not in a directory in can read, so chdir to the 
    daemons directory before we start doing stuff
  
  
Index: loncom/loncron
diff -u loncom/loncron:1.74 loncom/loncron:1.75
--- loncom/loncron:1.74	Thu May 31 01:20:18 2007
+++ loncom/loncron	Tue Jun 12 19:50:39 2007
@@ -2,7 +2,7 @@
 
 # Housekeeping program, started by cron, loncontrol and loncron.pl
 #
-# $Id: loncron,v 1.74 2007/05/31 05:20:18 albertel Exp $
+# $Id: loncron,v 1.75 2007/06/12 23:50:39 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -640,7 +640,7 @@
     undef $perlvarref;
     delete $perlvar{'lonReceipt'}; # remove since sensitive and not needed
     delete $perlvar{'lonSqlAccess'}; # remove since sensitive and not needed
-
+    chdir($perlvar{'lonDaemons'});
 # --------------------------------------- Make sure that LON-CAPA is configured
 # I only test for one thing here (lonHostID).  This is just a safeguard.
     if ('{[[[[lonHostID]]]]}' eq $perlvar{'lonHostID'}) {