[BUG] some directives set using -g command line options are ignored
Maxim Dounin
mdounin at mdounin.ru
Sun May 6 09:48:40 UTC 2012
Hello!
On Sun, May 06, 2012 at 09:43:15AM +0200, Manlio Perillo wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi.
>
> I have noticed that some directives set using the -g command line
> options are ignored.
>
> As an example, commenting the daemon and master directives in the
> nginx.conf file, the following:
>
> nginx -p . -c conf/nginx.conf -g daemon=off -g master=off
>
> will start an Nginx server with daemon on and master on.
>
> I have also checked the pid and error_log directives and they are
> ignored, too.
>
> Nginx behaviour with -g error_log=<...> is strange, since the error_log
> path is ignored (the default logs/error.log is used insted), but the
> file is empty.
As already discussed on nginx@ list, this is fixed in 1.2.0. Now
nginx correcly complains about invalid syntax used. Right one is
nginx -p . -c conf/nginx.conf -g "daemon off; master_process off;"
Maxim Dounin
More information about the nginx-devel
mailing list