Index: /trunk/FACT++/src/FilesStatisticsService.cc
===================================================================
--- /trunk/FACT++/src/FilesStatisticsService.cc	(revision 11291)
+++ /trunk/FACT++/src/FilesStatisticsService.cc	(revision 11292)
@@ -192,5 +192,5 @@
 //! @param duration the duration between two services update, in second
 //
-void FilesStatisticsService::SetStatPeriod(float duration)
+void FilesStatisticsService::SetStatPeriod(const float duration)
 {
     if (duration < 0)
Index: /trunk/FACT++/src/FilesStatisticsService.h
===================================================================
--- /trunk/FACT++/src/FilesStatisticsService.h	(revision 11291)
+++ /trunk/FACT++/src/FilesStatisticsService.h	(revision 11292)
@@ -64,5 +64,5 @@
     bool FileOpened(const string& fileName);
     void SetDebugMode(bool);
-    void SetStatPeriod(float duration);
+    void SetStatPeriod(const float duration);
     void GetTotalSizeWritten(FileStatisticsData& data);
     void Reset();
Index: /trunk/FACT++/src/datalogger.cc
===================================================================
--- /trunk/FACT++/src/datalogger.cc	(revision 11291)
+++ /trunk/FACT++/src/datalogger.cc	(revision 11292)
@@ -2523,4 +2523,5 @@
 {
     fDebugIsOn = conf.Get<bool>("debug");
+    fFilesStats.SetDebugMode(fDebugIsOn);
 
     //Set the block or allow list
@@ -2566,4 +2567,50 @@
         fRunNumberTimeout = timeout;
     }
+
+    //configure the run files directory
+    if (conf.Has("run_folder"))
+     {
+         const string folder = conf.Get<string>("run_folder");
+         if (fFilesStats.SetCurrentFolder(folder))
+             fRunFilePath = folder;
+         else
+             Error("Folder " + folder + " given through configuration seems invalid. Ignoring it");
+    }
+
+    //configure the nightly files directory
+    if (conf.Has("nightly_folder"))
+    {
+        const string folder = conf.Get<string>("nightly_folder");
+        if (fFilesStats.SetCurrentFolder(folder))
+            fNightlyFilePath = folder;
+        else
+            Error("Folder " + folder + " given through configuration seems invalid. Ignoring it");
+    }
+
+    //check if we have overwritten badly the directory being watched for free space
+    if (conf.Has("run_folder") && !conf.Has("nightly_folder"))
+    {//we've set the run folder for free space. we've decided it should be the nightly one. thus override it
+        fFilesStats.SetCurrentFolder(fNightlyFilePath);
+    }
+
+    //configure the interval between statistics updates
+    if (conf.Has("stats_interval"))
+    {
+        const float interval = conf.Get<float>("stats_interval");
+        fFilesStats.SetStatPeriod(interval);
+    }
+
+    //configure if the filenames service is on or off
+    if (conf.Has("filename_service"))
+    {
+        fOpenedFilesIsOn = conf.Get<bool>("filename_service");
+    }
+
+    //configure if the number of subscriptions and fits files is on or off.
+    if (conf.Has("numsubs_service"))
+    {
+        fNumSubAndFitsIsOn = conf.Get<bool>("numsubs_service");
+    }
+
     return -1;
 }
@@ -2727,4 +2774,9 @@
         ("group,g", vars<string>(), "Grouping of services into a single run-Fits")
         ("runtimeout", var<long>(), "Time out delay for old run numbers")
+        ("nightly_folder", var<string>(), "Base path for the nightly files")
+        ("run_folder", var<string>(), "Base path for the run files")
+        ("stats_interval", var<float>(), "Interval in seconds between two files statistics update")
+        ("filename_service", po_bool(), "Should the filename service be enabled?")
+        ("numsubs_service", po_bool(), "Should the number of subscriptions service be enabled?")
         ;
 
