[systemd-devel] How to run forking daemon with systemd in correct way, without errors?

Reindl Harald h.reindl at thelounge.net
Wed Nov 22 21:27:15 UTC 2017



Am 22.11.2017 um 21:37 schrieb Gena Makhomed:
> I am use nginx web server (http://nginx.org/) with systemd.
> But I see errors in /var/log/messages when running nginx:
> 
> systemd: Starting nginx - high performance web server...
> systemd: Failed to read PID from file /var/run/nginx.pid: Invalid argument
> systemd: Started nginx - high performance web server.
> 
> systemd: Starting nginx - high performance web server...
> systemd: PID file /var/run/nginx.pid not readable (yet?) after start.
> systemd: Started nginx - high performance web server

either the daemon needs to be fixed or just remove the pid-file stuff 
from the systemd-unit, systemd don't need it really



More information about the systemd-devel mailing list