Index: /trunk/FACT++/src/Main.h
===================================================================
--- /trunk/FACT++/src/Main.h	(revision 11252)
+++ /trunk/FACT++/src/Main.h	(revision 11253)
@@ -26,5 +26,5 @@
     // Start io_service.run to only use the commandHandler command detaching
     AutoScheduler<S> io_service(wout);
-    if (!io_service.SetConfiguration(conf))
+    if (!io_service.EvalConfiguration(conf))
         return -1;
 
@@ -48,6 +48,7 @@
 
     S io_service(wout);
-    if (!io_service.SetConfiguration(conf))
-        return -1;
+    const int rc = io_service.EvalConfiguration(conf);
+    if (rc>=0)
+        return rc;
 
     shell.SetReceiver(io_service);
Index: /trunk/FACT++/src/datalogger.cc
===================================================================
--- /trunk/FACT++/src/datalogger.cc	(revision 11252)
+++ /trunk/FACT++/src/datalogger.cc	(revision 11253)
@@ -205,5 +205,5 @@
     ~DataLogger(); 
 
-    bool SetConfiguration(Configuration& conf);
+    int EvalConfiguration(Configuration& conf);
 
 private:
@@ -2440,5 +2440,5 @@
 //! @param conf the configuration object that should be used
 //!
-bool DataLogger::SetConfiguration(Configuration& conf)
+int DataLogger::EvalConfiguration(Configuration& conf)
 {
     fDebugIsOn = conf.Get<bool>("debug");
@@ -2482,9 +2482,9 @@
         {
             Error("Time out delay for old run numbers should be greater than 0 minute");
-            return false;
+            return 1;
         }
         fRunNumberTimeout = timeout;
     }
-    return true;
+    return -1;
 }
 
@@ -2505,5 +2505,5 @@
     // Start io_service.run to only use the commandHandler command detaching
     DataLogger logger(wout);
-    if (!logger.SetConfiguration(conf))
+    if (!logger.EvalConfiguration(conf))
         return -1;
 
@@ -2542,5 +2542,5 @@
     DataLogger logger(wout);
 
-    if (!logger.SetConfiguration(conf))
+    if (!logger.EvalConfiguration(conf))
         return -1;
     
Index: /trunk/FACT++/src/drivectrl.cc
===================================================================
--- /trunk/FACT++/src/drivectrl.cc	(revision 11252)
+++ /trunk/FACT++/src/drivectrl.cc	(revision 11253)
@@ -847,5 +847,5 @@
     }
 
-    bool SetConfiguration(const Configuration &conf)
+    int EvalConfiguration(const Configuration &conf)
     {
         SetEndpoint(conf.Get<string>("addr"));
@@ -853,5 +853,5 @@
         fDrive.SetVerbose(!conf.Get<bool>("quiet"));
 
-        return true;
+        return -1;
     }
 };
@@ -885,5 +885,5 @@
     // Start io_service.run to only use the commandHandler command detaching
     StateMachineDrive<S, T> io_service(wout);
-    if (!io_service.SetConfiguration(conf))
+    if (!io_service.EvalConfiguration(conf))
         return -1;
 
@@ -909,5 +909,5 @@
 
     StateMachineDrive<S, R> io_service(wout);
-    if (!io_service.SetConfiguration(conf))
+    if (!io_service.EvalConfiguration(conf))
         return -1;
 
Index: /trunk/FACT++/src/fadctrl.cc
===================================================================
--- /trunk/FACT++/src/fadctrl.cc	(revision 11252)
+++ /trunk/FACT++/src/fadctrl.cc	(revision 11253)
@@ -1597,5 +1597,5 @@
     }
 
-    bool SetConfiguration(const Configuration &conf)
+    int EvalConfiguration(const Configuration &conf)
     {
         fIsVerbose = !conf.Get<bool>("quiet");
@@ -1614,5 +1614,5 @@
             const tcp::endpoint endpoint = GetEndpoint(addr);
             if (endpoint==tcp::endpoint())
-                return false;
+                return 1;
 
             for (int i=0; i<num; i++)
@@ -1620,5 +1620,5 @@
 
             StartConnection();
-            return true;
+            return -1;
         }
         // ^^^^^ for debugging ^^^^^
@@ -1626,6 +1626,6 @@
         if (!(conf.Has("base-addr") ^ conf.Has("addr")))
         {
-           T::Out() << kRed << "SetConfiguration - Only --base-addr or --addr allowed." << endl;
-           return false;
+           T::Out() << kRed << "EvalConfiguration - Only --base-addr or --addr allowed." << endl;
+           return 2;
         }
 
@@ -1639,5 +1639,5 @@
             const tcp::endpoint endpoint = GetEndpoint(base);
             if (endpoint==tcp::endpoint())
-                return false;
+                return 1;
 
             const ba::ip::address_v4::bytes_type ip = endpoint.address().to_v4().to_bytes();
@@ -1645,6 +1645,6 @@
             if (ip[2]>250 || ip[3]>244)
             {
-                T::Out() << kRed << "SetConfiguration - IP address given by --base-addr out-of-range." << endl;
-                return false;
+                T::Out() << kRed << "EvalConfiguration - IP address given by --base-addr out-of-range." << endl;
+                return 3;
             }
 
@@ -1667,5 +1667,5 @@
                 const tcp::endpoint endpoint = GetEndpoint(*i);
                 if (endpoint==tcp::endpoint())
-                    return false;
+                    return 1;
 
                 AddEndpoint(endpoint);
@@ -1675,5 +1675,5 @@
         StartConnection();
 
-        return true;
+        return -1;
     }
 
@@ -1708,5 +1708,5 @@
     // Start io_service.run to only use the commandHandler command detaching
     StateMachineFAD<S> io_service(wout);
-    if (!io_service.SetConfiguration(conf))
+    if (!io_service.EvalConfiguration(conf))
         return -1;
 
@@ -1732,5 +1732,5 @@
 
     StateMachineFAD<S> io_service(wout);
-    if (!io_service.SetConfiguration(conf))
+    if (!io_service.EvalConfiguration(conf))
         return -1;
 
Index: /trunk/FACT++/src/fscctrl.cc
===================================================================
--- /trunk/FACT++/src/fscctrl.cc	(revision 11252)
+++ /trunk/FACT++/src/fscctrl.cc	(revision 11253)
@@ -518,5 +518,5 @@
     }
 
-    bool SetConfiguration(const Configuration &conf)
+    int EvalConfiguration(const Configuration &conf)
     {
         SetEndpoint(conf.Get<string>("addr"));
@@ -524,5 +524,5 @@
         fFSC.SetVerbose(!conf.Get<bool>("quiet"));
 
-        return true;
+        return -1;
     }
 };
@@ -557,5 +557,5 @@
     // Start io_service.run to only use the commandHandler command detaching
     StateMachineFSC<S, T> io_service(wout);
-    if (!io_service.SetConfiguration(conf))
+    if (!io_service.EvalConfiguration(conf))
         return -1;
 
@@ -581,5 +581,5 @@
 
     StateMachineFSC<S, R> io_service(wout);
-    if (!io_service.SetConfiguration(conf))
+    if (!io_service.EvalConfiguration(conf))
         return -1;
 
Index: /trunk/FACT++/src/ftmctrl.cc
===================================================================
--- /trunk/FACT++/src/ftmctrl.cc	(revision 11252)
+++ /trunk/FACT++/src/ftmctrl.cc	(revision 11253)
@@ -1828,5 +1828,5 @@
     }
 
-    bool SetConfiguration(const Configuration &conf)
+    int EvalConfiguration(const Configuration &conf)
     {
         SetEndpoint(conf.Get<string>("addr"));
@@ -1838,5 +1838,5 @@
 //        fFTM.SetDefaultSetup(conf.Get<string>("default-setup"));
 
-        return true;
+        return -1;
     }
 };
@@ -1870,5 +1870,5 @@
     // Start io_service.run to only use the commandHandler command detaching
     StateMachineFTM<S, T> io_service(wout);
-    if (!io_service.SetConfiguration(conf))
+    if (!io_service.EvalConfiguration(conf))
         return -1;
 
@@ -1894,5 +1894,5 @@
 
     StateMachineFTM<S, R> io_service(wout);
-    if (!io_service.SetConfiguration(conf))
+    if (!io_service.EvalConfiguration(conf))
         return -1;
 
