On Tue, October 3, 2017 13:12, hw wrote:
Alexander Dalloz ad+lists@uni-x.org writes:
Am 01.10.2017 um 17:21 schrieb hw:
Hi,
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.
It will help you to avoid future unpleasant surprises if you take the time to read up on the Hierarchical File System (HFS) and its relation the Filesystem Hierarchy Standard (FHS). The directories /run and /var/run, which should be the same place on properly configured systems, are solely to be used for run-time data ONLY. The phrase run-time implies ephemeral data that is not preserved between restarts of the service much less reboots.