From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1I5OdR-0000n2-4H for garchives@archives.gentoo.org; Mon, 02 Jul 2007 16:20:21 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l62GJOJH029408; Mon, 2 Jul 2007 16:19:24 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l62GHUMc027149 for ; Mon, 2 Jul 2007 16:17:31 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 4DC2365377 for ; Mon, 2 Jul 2007 16:17:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: 0.941 X-Spam-Level: X-Spam-Status: No, score=0.941 required=5.5 tests=[AWL=0.059, DATE_IN_PAST_12_24=0.881] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0zJt1YpUGkSr for ; Mon, 2 Jul 2007 16:17:28 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 483D8651A9 for ; Mon, 2 Jul 2007 16:17:27 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1I5OaS-00008w-Ch for gentoo-dev@gentoo.org; Mon, 02 Jul 2007 18:17:16 +0200 Received: from pd9e25228.dip.t-dialin.net ([217.226.82.40]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Jul 2007 18:17:16 +0200 Received: from daniel.schoemer by pd9e25228.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Jul 2007 18:17:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-dev@lists.gentoo.org From: Daniel =?utf-8?Q?Sch=C3=B6mer?= Subject: [gentoo-dev] Re: Re: Inotify and (f)crontabs Date: Sun, 1 Jul 2007 21:20:19 +0200 Message-ID: <20070701191901.GA20002@storsten.pD9E26FF0.dip.t-dialin.net> References: <2bd962720707010748g6fcb96cfw47a85610aadc9f79@mail.gmail.com> <20070701170635.GA17876@storsten.pD9E26FF0.dip.t-dialin.net> <2bd962720707011030q265bb1eeqedfd0ac19920e939@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pd9e25228.dip.t-dialin.net Content-Disposition: inline In-Reply-To: <2bd962720707011030q265bb1eeqedfd0ac19920e939@mail.gmail.com> OpenPGP: id=AE51A5F9FAF565D3; preference=sign; url=http://subkeys.pgp.net:11371/pks/lookup?op=index&search=0xAE51A5F9FAF565D3 Jabber-ID: quatauta@jabber.org User-Agent: Mutt/1.5.15 (2007-04-06) Sender: news Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id l62GJOLK029408 X-Archives-Salt: fdf38613-e1a3-4db9-bd79-9ce3b0dbd22f X-Archives-Hash: 0210bce4f66cee03b16434d1b3f44e29 Hi! Ryan Reich wrote: > On 7/1/07, Daniel Sch=C3=B6mer wrote: >> $ sudo fcrontab -l systab >> [...] >> %hourly 0-30 run-parts --report /etc/cron.hourly >> %daily * * run-parts --report /etc/cron.daily >> [...] > Thanks for sharing this. [...] 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. I have never really thought about the combined mails. I'm using this on my desktop with only a few scripts in /etc/cron.{h,d,w,m}*/. Thinking about it now, I would prefer one mail per script. At least when there are more than just a few scripts run by cron. I can't see an elegant way implementing this directly in fcron. A modified version of run-parts that's capable of mailing the output of each script (or all in conglomerate if specified) to the runnig user (or a specified account) may do. > Less ambiguously a bug, though, is that the syslog will only > record running run-parts and not which parts were run). Would it be sufficient to let this also be done by run-parts? Then there would be records of fcron starting run-parts and records of run-parts starting each script. > 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. I must say, I can't remember that I've seen check_system_crontabs on my desktop; maybe I just suppressed it :-). Now that I think of it, I'm remembering an elog message from the fcron ebuild telling me to use the fcrontab systab for system-wide jobs instead of /etc/{f,}crontab. Using inotify sounds more logical for me than using (f)cron for this. Daniel Sch=C3=B6mer --=20 gentoo-dev@gentoo.org mailing list