Gary Stainburn gary@ringways.co.uk writes:
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.
I would also expect that.
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.
A ramdisk? That´s an incredibly stupid idea. Ramdisks should not be used by default.
Is there a way to change that?
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.
That doesn´t protect you in case of a power failure and may increase shutdown durations to a point where the amount of time it takes to shutdown isn´t fully covered by the UPS.