skip spawning backends for preflight tests (#2642)
Also, update man page for lighttpd -tt x-ref: "add option for "fail on warning"" https://redmine.lighttpd.net/issues/2642personal/stbuehler/mod-csrf-old
parent
c63427c999
commit
c4edd35655
|
@ -33,6 +33,9 @@ Print the parsed configuration file in its internal form and exit.
|
|||
\fB\-t\fP
|
||||
Test the configuration file for syntax errors and exit.
|
||||
.TP 8
|
||||
\fB\-tt\fP
|
||||
Test the configuration file for syntax errors, load and initialize modules, and exit.
|
||||
.TP 8
|
||||
\fB\-D\fP
|
||||
Do not daemonize (go into background). The default is to daemonize.
|
||||
.TP 8
|
||||
|
|
|
@ -1429,7 +1429,8 @@ SETDEFAULTS_FUNC(mod_fastcgi_set_defaults) {
|
|||
"\n\tcurrent:", pno, "/", host->max_procs);
|
||||
}
|
||||
|
||||
if (fcgi_spawn_connection(srv, p, host, proc)) {
|
||||
if (!srv->srvconf.preflight_check
|
||||
&& fcgi_spawn_connection(srv, p, host, proc)) {
|
||||
log_error_write(srv, __FILE__, __LINE__, "s",
|
||||
"[ERROR]: spawning fcgi failed.");
|
||||
fastcgi_process_free(proc);
|
||||
|
|
|
@ -1191,7 +1191,8 @@ SETDEFAULTS_FUNC(mod_scgi_set_defaults) {
|
|||
"\n\tcurrent:", pno, "/", df->min_procs);
|
||||
}
|
||||
|
||||
if (scgi_spawn_connection(srv, p, df, proc)) {
|
||||
if (!srv->srvconf.preflight_check
|
||||
&& scgi_spawn_connection(srv, p, df, proc)) {
|
||||
log_error_write(srv, __FILE__, __LINE__, "s",
|
||||
"[ERROR]: spawning fcgi failed.");
|
||||
scgi_process_free(proc);
|
||||
|
|
Loading…
Reference in New Issue