Index: /trunk/psModules/src/config/pmConfig.c
===================================================================
--- /trunk/psModules/src/config/pmConfig.c	(revision 8580)
+++ /trunk/psModules/src/config/pmConfig.c	(revision 8581)
@@ -3,6 +3,6 @@
  *  @author PAP, IfA
  *
- *  @version $Revision: 1.38 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-10 21:49:16 $
+ *  @version $Revision: 1.39 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-25 02:24:02 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -393,4 +393,20 @@
         psTrace("psModules.config", 7, "Setting trace format to %s\n", traceFormat);
         psTraceSetFormat(traceFormat);
+    }
+
+    //
+    // If LOGDEST is specified in the configuration file, then we must initialize
+    // with a call to psLogSetDestination().
+    // XXX: This is not spec'ed in the SDRS.
+    //
+    psString traceDest = psMetadataLookupStr(&mdok, config->site, "TRACEDEST");
+    if (mdok && traceDest && strlen(traceDest) > 0) {
+        psTrace("psModules.config", 7, "Setting trace destination to %s\n", traceDest);
+        // XXX: Only stdout and stderr are provided for now; this section should be
+        // expanded in the future to do files, and perhaps even sockets.
+        if (!psTraceSetDestination(psMessageDestination(traceDest))) {
+            psLogMsg(__func__, PS_LOG_WARN, "Unable to set trace destination to %s\n",
+                     config->argv[argNum]);
+        }
     }
 
