diff --git a/main.c b/main.c index 754c672..bf2c242 100644 --- a/main.c +++ b/main.c @@ -114,7 +114,6 @@ MAI_CleanupAndExit(void) static void signal_cleanup(int x) { - LOG(LOGS_WARN, LOGF_Main, "chronyd exiting on signal"); if (!initialised) exit(0); SCH_QuitProgram(); } @@ -397,6 +396,8 @@ int main the scheduler. */ SCH_MainLoop(); + LOG(LOGS_INFO, LOGF_Main, "chronyd exiting"); + MAI_CleanupAndExit(); return 0;