PID file /run/ not readable (yet?) after start
June 27, 2016

PID file /run/ not readable (yet?) after start

Posted on June 27, 2016  •  1 minutes  • 114 words  •  Suggest Changes

Aauch, after installing Nginx on a new machine Centos 7, I could not start it… for some weird error :

systemd: Starting nginx - high performance web server...
nginx: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: nginx: configuration file /etc/nginx/nginx.conf test is successful
systemd: PID file /run/ not readable (yet?) after start.
systemd: nginx.service start operation timed out. Terminating.
systemd: Failed to start nginx - high performance web server.
systemd: Unit nginx.service entered failed state.
systemd: nginx.service failed.

The file did exist at /var/run/ and was readable. The fix after some searching :

change /etc/nginx/nginx.conf :


pid        /var/run/;


pid        /run/;

and restart the service, that’s it ? yep, that’s it!


If you enjoyed this website, consider buying me a Dr. Pepper

Buy me a Dr PepperBuy me a Dr Pepper