--- lbbs/src/net_server.c 2025/11/16 00:19:42 1.83 +++ lbbs/src/net_server.c 2025/11/16 02:06:56 1.84 @@ -672,6 +672,12 @@ int net_server(const char *hostaddr, in_ SYS_conf_reload = 0; sd_notify(0, "RELOADING=1"); + // Restart log + if (log_restart() < 0) + { + log_error("Restart logging failed\n"); + } + // Reload configuration if (load_conf(CONF_BBSD) < 0) { @@ -728,6 +734,12 @@ int net_server(const char *hostaddr, in_ log_common("Reload section config and gen_ex successfully\n"); } + // Notify child processes to reload configuration + if (kill(-getpid(), SIGUSR1) < 0) + { + log_error("Send SIGUSR1 signal failed (%d)\n", errno); + } + sd_notify(0, "READY=1"); }