It seems to be a race between systemd and nginx. As if systemd was expecting the PID file to be populated before nginx had the time to create it.
Workaround:
printf "[Service]\nExecStartPost=/bin/sleep 0.1\n" > /etc/systemd/system/nginx.service.d/override.conf systemctl daemon-reload
It seems to be a race between systemd and nginx. As if systemd was expecting the PID file to be populated before nginx had the time to create it.
Workaround:
printf "[Service] \nExecStartPost =/bin/sleep 0.1\n" > /etc/systemd/ system/ nginx.service. d/override. conf
systemctl daemon-reload