]> git.stg.codes - stg.git/blobdiff - projects/stargazer/main.cpp
Ticket 37. In the TariffChangeIsAllowed() function return "" added and
[stg.git] / projects / stargazer / main.cpp
index de0476879c3ca11945c650bdb1512f5bc3867f83..702bfb8663930c2aca4efb82a4b85cf5a6e6507e 100644 (file)
@@ -343,8 +343,16 @@ while (running)
     switch (sig)
         {
         case SIGHUP:
     switch (sig)
         {
         case SIGHUP:
+            {
+            SETTINGS_IMPL newSettings(settings);
+            if (newSettings.ReadSettings())
+                WriteServLog("ReadSettings error. %s", newSettings.GetStrError().c_str());
+            else
+                settings = newSettings;
+            WriteServLog.SetLogFileName(settings.GetLogFileName());
             traffCnt.Reload();
             traffCnt.Reload();
-            manager.reload();
+            manager.reload(settings);
+            }
             break;
         case SIGTERM:
             running = false;
             break;
         case SIGTERM:
             running = false;