centos-s-1vcpu-1gb-nyc1-01 systemd: Failed to read PID from file /run/nginx.pid: Invalid argument
is it can be the cause ? 🤔
Wait uhhh what
See if you have anything related to the /var/.../html folder
Apparently there might be a race condition on nginx start in some systems; running this script will add a 0.1 second delay before nginx starts, allowing the race condition to resolve itself. Try it to get rid of this error: mkdir /etc/systemd/system/nginx.service.d printf "[Service]\nExecStartPost=/bin/sleep 0.1\n" > /etc/systemd/system/nginx.service.d/override.conf systemctl daemon-reload
Обсуждают сегодня