[CentOS] how to prevent files and directories from being deleted?

Wed Oct 4 00:53:23 UTC 2017
Jonathan Billings <billings at negate.org>

On Oct 3, 2017, at 13:12, hw <hw at adminart.net> wrote:
> I´m using the packages from mariadb.org.  The old version that comes in
> Centos isn´t recommended, and I need features only the newer versions
> provide.
> Lighttpd is from epel, and it has basically the same issue.

If the mariadb.org package thinks /var/run is persistent, then it’s not intended for CentOS7. 

If the EPEL package did too, then there could be serious problems with that package. However, I see that it has a /usr/lib/tmpfiles.d/lighttpd.conf, so it is ok. 

Jonathan Billings