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

Sun Oct 1 15:21:32 UTC 2017
hw <hw at adminart.net>


how can I prevent files/directories like /var/run/mariadb from being
deleted on reboot?  Lighttpd has the same problem.

This breaks services and makes servers non-restartable by anyone else
but the administrator who needs to re-create the needed files and
directories every time and has to figure out what selinux labels they
need.  This causes unnecessary downtimes.

This is entirely inacceptable.  This totally sucks.

"Didn't work" is an error.