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

Jon LaBadie jcu at labadie.us
Mon Oct 9 20:31:58 UTC 2017


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."

jl
-- 
Jon H. LaBadie                 jon at jgcomp.com
 11226 South Shore Rd.          (703) 787-0688 (H)
 Reston, VA  20190              (703) 935-6720 (C)



More information about the CentOS mailing list