Welcome! Log In Create A New Profile

Advanced

Re: [BUG] some directives set using -g command line options are ignored

Maxim Dounin
May 06, 2012 05:50AM
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

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[BUG] some directives set using -g command line options are ignored

Manlio Perillo 1197 May 06, 2012 03:44AM

Re: [BUG] some directives set using -g command line options are ignored

Maxim Dounin 593 May 06, 2012 05:50AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 320
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready