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

Re: Deleting a file/directory on startup



Am Freitag, den 11.01.2008, 20:03 +0100 schrieb Till Maas:
> On Fri January 11 2008, Jonathan Underwood wrote:
> 
> > Have a look at the logic used in the fail2ban init file - the start
> > operation checks for a running fail2ban process. If non is found, it
> > is safe to delete the lock file.
> 
> The logic in fail2ban is vulnerable to race conditions, which does not help 
> for pm-utils, where it can easily happen that it is run several times very 
> fast after each other.
> 
> Btw. the initial problem is to only delete a file at startup. I even found a 
> bug report specifically about this: https://bugzilla.redhat.com/250927
> 
> Regards,
> Till
> -- 
> fedora-devel-list mailing list
> fedora-devel-list redhat com
> https://www.redhat.com/mailman/listinfo/fedora-devel-list

The directory that stores these files should be wiped at boot or on
shutdown..


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