Failed to parse PID from file /run/ Invalid argument


This is simply a case of nginx and systemd competing for resources. This warning is harmless since systemd only uses the PIDFile option to remove PIDFile after the nginx service terminates.

The workaround is to add the following line to /usr/lib/systemd/system/nginx.service.

ExecStartPost=/bin/sleep 1

Leave a Reply