Lucas Rolff Wrote:
---
> There's nothing wrong with testing the configuration before starting
> the web server.
Sure, but what effect does it have in the .service file?
> The config is tested during restart, by the ExecStartPre. If you
But onl
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
What's the purpose of testing the configuration file in the systemd
example?
Just starting the server seems simpler.. and the test isn't run prior to a
restart request.
ExecStartPre=/usr/sbin/nginx -t
https://www.nginx.com/resources/wiki/start/topics/examples/systemd/
Posted at Nginx Forum:
ht