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

Posted 27 June, 2016

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!

Show Comments (11)
© SvennD