Log configuration reloads.
Signed-off-by: Jan Vidar Krey <janvidar@extatic.org>
This commit is contained in:
parent
76588fb1bd
commit
3c4c52d0f9
|
@ -51,11 +51,9 @@ void hub_handle_signal(int fd, short events, void* arg)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SIGPIPE:
|
case SIGPIPE:
|
||||||
hub_log(log_trace, "hub_handle_signal(): caught SIGPIPE (ignoring)");
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SIGHUP:
|
case SIGHUP:
|
||||||
hub_log(log_info, "Caught hangup signal. Reloading configuration files...");
|
|
||||||
hub->status = hub_status_restart;
|
hub->status = hub_status_restart;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -126,6 +124,11 @@ int main_loop()
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
if (hub)
|
||||||
|
{
|
||||||
|
hub_log(log_info, "Reloading configuration files...");
|
||||||
|
}
|
||||||
|
|
||||||
if (read_config(arg_config, &configuration, !arg_have_config) == -1)
|
if (read_config(arg_config, &configuration, !arg_have_config) == -1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue