On 22.11.2017 23:27, Reindl Harald wrote:

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

Ok, but can you tell, what is wrong with daemon?

this is nginx daemonization code:
http://hg.nginx.org/nginx/file/tip/src/os/unix/ngx_daemon.c

this is function for writing pidfile:
http://hg.nginx.org/nginx/file/tip/src/core/ngx_cycle.c#l944

or just remove the pid-file stuff from the systemd-unit, systemd don't need it really

pid-file need for service reload and service stop.

--
Best regards,
 Gena
_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to