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 1I53Js-0005XC-UM for garchives@archives.gentoo.org; Sun, 01 Jul 2007 17:34:45 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l61HXjDJ013699; Sun, 1 Jul 2007 17:33:46 GMT Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l61HUKxM009225 for ; Sun, 1 Jul 2007 17:30:21 GMT Received: by ug-out-1314.google.com with SMTP id a2so713303ugf for ; Sun, 01 Jul 2007 10:30:20 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=N3LDFNKjNgYqcGPxvoHhbDcfP5EJgSs+YpeKd1Kv0xaQMDSRmJF1KKt946TGSGK7ANGx32XMyejLQrcBWnPcPqZzT/0mI3VKYDAPm0iYLpJmuXe/xwsQ5KrMuVFczZr6fzD0CCufketMhNVsx536OiDmY1fCVjPc3v2R6IVR3KM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=R+3NnkwkUsRuV/4FyOhqbUepoqng+jm629Hp5gWQCyyD9E2EU0CPuXg0a7uNmAami+2wone4/aakKr36X3hX2eBc08q7S/lgzWi7fVWDj8/GkJPmuq0UB18rLZ/XI+lSWbFjsvJUwDINW9ohNbjTliBeD4iiNKYOEU2VXBIZKYg= Received: by 10.78.168.1 with SMTP id q1mr2527936hue.1183311020321; Sun, 01 Jul 2007 10:30:20 -0700 (PDT) Received: by 10.78.46.12 with HTTP; Sun, 1 Jul 2007 10:30:20 -0700 (PDT) Message-ID: <2bd962720707011030q265bb1eeqedfd0ac19920e939@mail.gmail.com> Date: Sun, 1 Jul 2007 13:30:20 -0400 From: "Ryan Reich" To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: Inotify and (f)crontabs In-Reply-To: <20070701170635.GA17876@storsten.pD9E26FF0.dip.t-dialin.net> 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=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <2bd962720707010748g6fcb96cfw47a85610aadc9f79@mail.gmail.com> <20070701170635.GA17876@storsten.pD9E26FF0.dip.t-dialin.net> X-Archives-Salt: b4e5abea-2f97-4c80-877a-875108a84542 X-Archives-Hash: c2ac880bc07aa8079ea84798fb5747c9 On 7/1/07, Daniel Sch=F6mer 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=3D/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. --=20 Ryan Reich -- gentoo-dev@gentoo.org mailing list