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

Mon Oct 9 13:09:21 UTC 2017
hw <hw at adminart.net>

Gordon Messmer <gordon.messmer at gmail.com> writes:

> On 10/04/2017 04:54 AM, Mark Haney wrote:
>> Why is it so hard for people to understand that var/run IS NOT
>> PERSISTENT and was never meant to be?  Do they not teach basic Unix
>> concepts anymore?
>
>
> http://www.pathname.com/fhs/pub/fhs-2.3.html#VARRUNRUNTIMEVARIABLEDATA
>
> While FHS notes that *files* should be cleared during the boot
> process, it does not indicate that directories should be, and that is
> the source of this problem.

That´s a really good point, thank you.

> Packages on recent Fedora, RHEL, or CentOS releases should use
> tmpfiles.d to define directory structure within /var/run, but that is
> a unique and recent development.
>
> Please chill out.  There is no need to berate users, here.


-- 
"Didn't work" is an error.