Made sure logs can be rotated by sending a SIGHUP to the hub.

This commit is contained in:
Jan Vidar Krey 2010-07-12 16:56:55 +02:00
parent c30b85bbcb
commit 23498e9ac8
1 changed files with 5 additions and 0 deletions

View File

@ -115,6 +115,11 @@ int main_loop()
{ {
LOG_INFO("Reloading configuration files..."); LOG_INFO("Reloading configuration files...");
LOG_DEBUG("Hub status: %d", (int) hub->status); LOG_DEBUG("Hub status: %d", (int) hub->status);
/* Reinitialize logs */
hub_log_shutdown();
hub_log_initialize(arg_log, arg_log_syslog);
hub_set_log_verbosity(arg_verbose);
} }
if (read_config(arg_config, &configuration, !arg_have_config) == -1) if (read_config(arg_config, &configuration, !arg_have_config) == -1)