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

Re: use fcron as default scheduler in Fedora?

On Mon, Dec 08, 2008 at 02:20:37PM +0100, Marcela Maslanova wrote:
> > 
> But inotify can watch files or directories. The watch is set on
> /etc/crontab = SYSCRONTAB.

Sure, but in case it doesn't exist, inotify_add_watch will error out.
My guess is that if /etc/crontab doesn't exist, cronie reverts to
inotify_enabled = 0, and that's why I saw cronie looking every minute at

I have simplified the program and used the same masks than cronie at
Maybe you could implement SYSCONFDIR watching like I did to enable
inotify even if /etc/crontab or /etc/cron.d is missing and watch for
their creation by watching /etc.

In fedora, not having /etc/crontab or /etc/cron.d present should
be very rare, but in other setups this may happen.

If I have time, I'll try to see logs when /etc/crontab or /etc/cron.d 
are not present, since cronie should state it in that case.


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