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

marcos valentine msr.mailing at gmail.com
Mon Oct 2 12:36:57 UTC 2017


You can try chattr?

https://en.wikipedia.org/wiki/Chattr

2017-10-01 12:26 GMT-03:00 Alexander Dalloz <ad+lists at uni-x.org>:

> 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.
>>
>
> See
>
> https://developers.redhat.com/blog/2016/09/20/managing-tempo
> rary-files-with-systemd-tmpfiles-on-rhel7/
>
> how to manage tmpfiles.
>
> Curious, how did you install MariaDB that you have such a problem? The
> package shipping with CentOS does not create such issue.
>
> Alexander
>
>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos
>



More information about the CentOS mailing list