I am receiving a lot of emais from admin account alerting about nginx restart failed.
But nginx config is OK.
In fact the email body says:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
One important thing: i have more than 800 web domains currently active in the server.
Maybe there is a timeout for restarting nginx that i can adjust somewhere.
You are right.
I cant figure it out, it still tries to restart every X minutes. But this issue is random, not all the time.
I am seeing the error log full of this lines: