Re: use fcron as default scheduler in Fedora?

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

 



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
/etc/cron.d.

I have simplified the program and used the same masks than cronie at
http://cvs.fedoraproject.org/viewvc/rpms/fcron/devel/fcron_config_modified.c?revision=1.2&view=markup 
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.

--
Pat

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux