public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ryan Reich" <ryan.reich@gmail.com>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Re: Inotify and (f)crontabs
Date: Sun, 1 Jul 2007 13:30:20 -0400	[thread overview]
Message-ID: <2bd962720707011030q265bb1eeqedfd0ac19920e939@mail.gmail.com> (raw)
In-Reply-To: <20070701170635.GA17876@storsten.pD9E26FF0.dip.t-dialin.net>

On 7/1/07, Daniel Schömer <daniel.schoemer@gmx.net> wrote:
> Hi!
>
> Ryan Reich wrote:
> > [...]
> > My issue: I just installed fcron and I have to say, I'm
> > a little disappointed with the kludgy mechanism for
> > implmenting:
> >
> > 1. easy configuration, meaning I don't have to run fcrontab
> >    personally
> >
> > 2. /etc/cron.{hourly,daily,weekly,monthly} These are implmented
> >    by some very silly-looking polling tricks which, even in
> >    principle, will necessarily waste 83% (that's 5/6) of their
> >    efforts and clutter the logs with useless and uninformative
> >    messages.
> > [...]
>
> I just want to share my system-wide fcrontab:
>
>   $ sudo fcrontab -l systab
>   PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
>
>   !nice(15)
>   !noticenotrun(false)
>   !serial(true)
>
>   %hourly  0-30  run-parts --report /etc/cron.hourly
>   %daily   * *   run-parts --report /etc/cron.daily
>   %weekly  * *   run-parts --report /etc/cron.weekly
>   %monthly * * * run-parts --report /etc/cron.monthly
>
> I use fcron's capabilities to execute the files in
> /etc/cron.{hourly,daily,weekly,monthly}/ once within each period.

Thanks for sharing this.  I'd never seen this run-parts utility
before, though I see at least that it's a Debian contribution rather
than a standard utility (thus I avert shame).  This is a more elegant
solution than the run-crons method, though it doesn't have quite the
same effect as instructing cron to actually run each command
separately (their outputs will be mailed in conglomerate, rather than
one mail per periodic program.  This is, according to your
preferences, either a bug or a feature.  Less ambiguously a bug,
though, is that the syslog will only record running run-parts and not
which parts were run).

Have you any thoughts on what to do with check_system_crontabs?  Its
schedule is inherently reactive and not periodic, so really,
administering it with (f)cron at all is a logical error.  That's why I
suggested inotify in the first place.

-- 
Ryan Reich
--
gentoo-dev@gentoo.org mailing list



  reply	other threads:[~2007-07-01 17:34 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-01 14:48 [gentoo-dev] Inotify and (f)crontabs Ryan Reich
2007-07-01 17:07 ` [gentoo-dev] " Daniel Schömer
2007-07-01 17:30   ` Ryan Reich [this message]
2007-07-01 19:20     ` [gentoo-dev] " Daniel Schömer
2007-07-04 17:19       ` Ryan Reich
2007-07-04 20:58         ` [gentoo-dev] " Daniel Schömer
2007-07-06  8:39         ` [gentoo-dev] Re: " Steve Long
2007-07-07 15:36           ` Ryan Reich
2007-07-09 21:43             ` Ryan Reich
2007-07-10  0:35               ` Robert Buchholz
2007-07-07  8:23 ` [gentoo-dev] " Mike Frysinger
     [not found]   ` <2bd962720707070847h2b1084f7lcb5b844fe9b8db70@mail.gmail.com>
2007-07-07 17:19     ` Ryan Reich
2007-07-07 18:13   ` Peter Gordon
2007-07-08  3:21     ` Mike Frysinger
2007-07-08  4:07       ` Ryan Reich
2007-07-08  4:22         ` Mike Frysinger
2007-07-08 10:46           ` [gentoo-dev] " Steve Long
2007-07-08 13:43             ` Ryan Reich
2007-07-08 13:50           ` [gentoo-dev] " Ryan Reich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2bd962720707011030q265bb1eeqedfd0ac19920e939@mail.gmail.com \
    --to=ryan.reich@gmail.com \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox