Index: trunk/psModules/src/config/pmConfig.c
===================================================================
--- trunk/psModules/src/config/pmConfig.c	(revision 18830)
+++ trunk/psModules/src/config/pmConfig.c	(revision 18905)
@@ -68,4 +68,5 @@
     psFree(config->arguments);
     psFree(config->database);
+    psFree(config->program);
 
     // Close log and trace files
@@ -150,4 +151,5 @@
     config->database = NULL;
     config->defaultRecipe = NULL;
+    config->program = NULL;
 
     config->traceFD = DEFAULT_TRACE;
@@ -442,4 +444,5 @@
 
     pmConfig *config = pmConfigAlloc(); // The configuration, containing site, camera and recipes
+    config->program = psStringCopy(argv[0]);
     config->defaultRecipe = defaultRecipe;
 
@@ -1745,24 +1748,2 @@
 }
 
-
-#if 0
-bool pmConfigDump(const pmConfig *config, const pmFPA *source, const char *outroot)
-{
-    PS_ASSERT_PTR_NON_NULL(config, false);
-    PS_ASSERT_STRING_NON_EMPTY(outroot, false);
-
-    pmFPAview *view = source ? pmFPAviewTop(source) : pmFPAviewAlloc(0);// View to top level
-    if (!view) {
-        psError(PS_ERR_UNKNOWN, false, "Unable to determine top view for FPA.");
-        return false;
-    }
-
-    psMetadata *dumpRules = psMetadataLookupMetadata(NULL, config->system, "CONFIG.RULES"); // Name rules
-    if (!dumpRules) {
-        psError(PS_ERR_UNKNOWN, false, "Unable to find CONFIG.RULES in system configuration");
-        psFree(view);
-        return false;
-    }
-
-    const char *name =
-#endif
