Thanks Maxim, this makes perfect sense! However the part of the question still stands: is there a way from ngx_cycle_t structure or from some global structure to figure out in which mode nginx is running - testing the configuration or actually starting? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,291171,291194#msg-291194