Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cf485ab

Browse files
committedFeb 7, 2025·
shutdown command file worker on errors
otherwise naemon hangs during errors on start
1 parent 78a75df commit cf485ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/naemon/naemon.c

+1
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,7 @@ int main(int argc, char **argv)
599599
nm_log(NSLOG_CONFIG_ERROR, "Error: Module loading failed. Aborting.\n");
600600
/* give already loaded modules a chance to deinitialize */
601601
neb_unload_all_modules(NEBMODULE_FORCE_UNLOAD, NEBMODULE_NEB_SHUTDOWN);
602+
shutdown_command_file_worker();
602603
exit(EXIT_FAILURE);
603604
}
604605
timing_point("Loaded modules\n");

0 commit comments

Comments
 (0)
Please sign in to comment.