Detect netdata CLI initialization failure (#21275)
Set CLI init status to off if we failed to initialize
Stelios Fragkakis committed
Nov 7, 2025 at 15:36 UTC
22da870f90d2b36e15a1720b38d0fc375742420b
1 file changed
+1
src/daemon/commands.c
+1
@@ -896,6 +896,7 @@ void commands_init(void)
896
897
after_error:
898
netdata_log_error("Failed to initialize command server. The netdata cli tool will be unable to send commands.");
899
+ command_server_initialized = CMD_INIT_STATUS_OFF;
900
}
901
902
void commands_exit(void)