Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] -h output note addition: Testing of configuration can lead to a correction of path/file permissions

Maxim Dounin
January 12, 2018 09:44AM
Hello!

On Fri, Jan 12, 2018 at 09:59:37AM +0100, Jörg Kost wrote:

> still feel, that the -t switch behavior might be not so good documented.
> In some border cases this might not be the intention of running a test.

While it might not be the intention, certainly configuration test
is not the same as syntax check, and would never be. The idea
behind configuration test is to be able to check that nginx will
be able to start with the configuration in question, but without
actually starting it - to avoid interference with already running
nginx, if any.

Configuration testing may have side effects, this is expected.
Some of these side effects are documented at
http://nginx.org/en/docs/switches.html, though certainly there are
others.

If you think that the documentation is insufficient - consider
submitting a patch to improve it. If you think that certain side
effects should be avoided - feel free to submit a patch to avoid
them.

> Currently it will log this things to the error file only on failure, but
> I am thinking of a more general approach -> always log?

Not sure it's a good idea.

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

[PATCH] -h output note addition: Testing of configuration can lead to a correction of path/file permissions

Jörg Kost 681 January 10, 2018 10:10AM

Re: [PATCH] -h output note addition: Testing of configuration can lead to a correction of path/file permissions

Maxim Dounin 385 January 10, 2018 11:40AM

Re: [PATCH] -h output note addition: Testing of configuration can lead to a correction of path/file permissions

Jörg Kost 176 January 12, 2018 04:02AM

Re: [PATCH] -h output note addition: Testing of configuration can lead to a correction of path/file permissions

Maxim Dounin 212 January 12, 2018 09:44AM



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

Online Users

Guests: 193
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