From: Piotr Przybylski Date: Sun, 25 Oct 2026 12:54:45 +0000 (+0100) Subject: Control API: warn in single process mode only if API is enabled X-Git-Url: https://git.kaiwu.me/?a=commitdiff_plain;h=f7504639fafe7dc1dbcefa76d039bff0cd12bbe9;p=nginx.git Control API: warn in single process mode only if API is enabled Previously, the "control API unavailable in single process mode" warning was logged on every start in single process mode, even without the "-l" option. --- diff --git a/src/core/nginx.c b/src/core/nginx.c index 464911f60..a71d4cee7 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -368,7 +368,7 @@ main(int argc, char *const *argv) #endif #if (NGX_CONTROL_API) - if (ngx_process == NGX_PROCESS_SINGLE) { + if (ngx_control_api_enabled && ngx_process == NGX_PROCESS_SINGLE) { ngx_log_error(NGX_LOG_WARN, cycle->log, 0, "control API unavailable in single process mode");