On Tuesday 03 October 2017 18:24:01 Mark Haney wrote:
What issue? That the PID is dropped on reboot? What else are you putting in there? I'm beginning to question whether you know what you're doing or not. Lighttpd doesn't store any persistent info in /var/run/ because, like everything else, /var/run isn't for persistent data.
Mark, Many Non-Centos originated packages create directories in /var/run as part of the install, and expect them to still exist after a reboot.
They then fail when starting the service because they're trying to create a PID / Lock file in a directory that no longer exists. This problem has been around ever since /var/run was moved to tmpfs.
Unfortunately, sometimes we have to use packages other than the official Centos ones, usually as in this case because we need newer versions.
There is a solution that saves /var/run to disk at shutdown and restores it at bootup but I can't remember what it is.