[CentOS] /var/run/... being deleted :((

Fri Oct 13 18:09:45 UTC 2017
Anand Buddhdev <anandb at ripe.net>

On 13/10/2017 18:45, Lamar Owen wrote:

Hi Lamar,


I do appreciate your humour :)

> Anyway, a form of pseudo-persistence that meets the OP's needs is
> already supported directly by systemd-tmpfiles, which is a part of the
> core systemd package and non-optional, so your vehement disagreement is
> moot, sorry.  The round hole already has a square-peg adapter, at least
> in CentOS 7.  Packagers just need to select the proper 'adapter' for
> systemd-tmpfiles; the adaptation is not (and should not be, in my
> opinion) automatic.

systemd-tmpfiles is not a hack, nor is it an adaptor. It's a core part
of systemd, and is meant to be used as has been described many times in
this thread.

What I am very much against are the various suggestions to save /var/run
on shutdown and restore it, or other pseudo packages to do similar
stuff. None of that is needed. systemd-tmpfiles is the correct and only
way to create files and directories in /var/run (and any other place) as