Re: how to prevent files and directories from being deleted?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tuesday 03 October 2017 18:24:01 Mark Haney wrote:
> What issue? That the PID is dropped on reboot?  What else are you
> putting in there?  I'm beginning to question whether you know what
> you're doing or not.  Lighttpd doesn't store any persistent info in
> /var/run/ because, like everything else, /var/run isn't for persistent
> data.

Mark, Many Non-Centos originated packages create directories in /var/run as 
part of the install, and expect them to still exist after a reboot.

They then fail when starting the service because they're trying to create a 
PID / Lock file in a directory that no longer exists.  This problem has been 
around ever since /var/run was moved to tmpfs.

Unfortunately, sometimes we have to use packages other than the official 
Centos ones, usually as in this case because we need newer versions.

There is a solution that saves /var/run to disk at shutdown and restores it at 
bootup but I can't remember what it is.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux