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

Mon Oct 9 20:39:59 UTC 2017
Valeri Galtsev <galtsev at kicp.uchicago.edu>

On Mon, October 9, 2017 3:31 pm, Jon LaBadie wrote:
> On Mon, Oct 09, 2017 at 08:32:32PM +0200, Alexander Dalloz wrote:
>> Am 09.10.2017 um 17:54 schrieb Jonathan Billings:
>> > I think that the important learning points today are:
>> >
>> > 1.) CentOS7 (and any other distro that uses systemd) will have /run as
>> > a tmpfs filesystem, and /var/run points to /run on CentOS7, so even if
>> > you think this disagrees with the FHS, that's the way it is for
>> > CentOS.
>>
>> And fun fact: not only RHEL 7 and thus CentOS 7 does so, but too Debian
>> 9
>> and Ubuntu 16.04 LTS (I have no newer test install of that distro).
>>
>> And frankly speaking, I don't see any indication that this violates with
>> the
>> FHS and that /var/run must persist reboots.
>>
> Just the opposite, the FHS condones the CentOS arrangement.
>
> Under /var/run it says:
>
>   "In general, the requirements for /run shall also apply to /var/run.
>    It is valid to implement /var/run as a symlink to /run."

Indeed, there are many UNIX ties Linux had that were severed by hard work
of developing systemd and friends. I guess we just have to live with that
(sigh).

Valeri

>
> jl
> --
> Jon H. LaBadie                 jon at jgcomp.com
>  11226 South Shore Rd.          (703) 787-0688 (H)
>  Reston, VA  20190              (703) 935-6720 (C)
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos
>


++++++++++++++++++++++++++++++++++++++++
Valeri Galtsev
Sr System Administrator
Department of Astronomy and Astrophysics
Kavli Institute for Cosmological Physics
University of Chicago
Phone: 773-702-4247
++++++++++++++++++++++++++++++++++++++++