X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/f6b42411f8193b918e00d06551ed85985913ffa1..e9571391fbe36f25d9df171764f6d47d8f024acc:/projects/stargazer/main.cpp?ds=inline

diff --git a/projects/stargazer/main.cpp b/projects/stargazer/main.cpp
index de047687..702bfb86 100644
--- a/projects/stargazer/main.cpp
+++ b/projects/stargazer/main.cpp
@@ -343,8 +343,16 @@ while (running)
     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();
-            manager.reload();
+            manager.reload(settings);
+            }
             break;
         case SIGTERM:
             running = false;