.service ExecStartPre in example
lucas at lucasrolff.com
Fri Jan 11 10:22:28 UTC 2019
There's nothing wrong with testing the configuration before starting the web server.
The config is tested during restart, by the ExecStartPre. If you modify a config and you want to restart, you should execute nginx -t prior to restarting your service - but generally you'd want to use nginx -s reload as much as possible.
On 11/01/2019, 11.12, "nginx on behalf of Olaf van der Spek" <nginx-bounces at nginx.org on behalf of nginx-forum at forum.nginx.org> wrote:
What's the purpose of testing the configuration file in the systemd
Just starting the server seems simpler.. and the test isn't run prior to a
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,282654,282654#msg-282654
nginx mailing list
nginx at nginx.org
More information about the nginx