Index: /trunk/FACT++/src/datalogger.cc
===================================================================
--- /trunk/FACT++/src/datalogger.cc	(revision 12441)
+++ /trunk/FACT++/src/datalogger.cc	(revision 12442)
@@ -384,4 +384,6 @@
     vector<string> backLogBuffer;
     bool shouldBackLog;
+    bool fShouldAutoStart;
+    bool fAutoStarted;
 public:
     int Write(const Time &time, const std::string &txt, int qos=kMessage);
@@ -863,5 +865,6 @@
 
      fRunNumberService = NULL;
-
+     fShouldAutoStart = false;
+     fAutoStarted = false;
      if(fDebugIsOn)
      {
@@ -952,4 +955,9 @@
 void DataLogger::infoHandler()
 {
+    if (!fAutoStarted && fShouldAutoStart)
+    {
+        fAutoStarted = true;
+        SetCurrentState(StartPlease());
+    }
     DimInfo* I = getInfo();
 
@@ -2278,5 +2286,10 @@
     //configure if the number of subscriptions and fits files is on or off.
     fNumSubAndFitsIsOn = !conf.Get<bool>("no-numsubs-service");
-
+    //should we open the daily files at startup ?
+    if (conf.Has("start-daily-files"))
+        if (conf.Get<bool>("start-daily-files"))
+        {
+            fShouldAutoStart = true;
+        }
     return -1;
 }
@@ -2353,4 +2366,5 @@
         ("no-filename-service", po_bool(),       "Disable update of filename service")
         ("no-numsubs-service",  po_bool(),       "Disable update of number-of-subscriptions service")
+        ("start-daily-files",   po_bool(),       "Starts the logger in DailyFileOpen instead of Ready")
         ;
 
