From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 8387 invoked from network); 15 Mar 2000 07:33:20 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 15 Mar 2000 07:33:20 -0000 Received: from mail.gmd.de (mail.gmd.de [129.26.8.90]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id CAA20934 for ; Wed, 15 Mar 2000 02:33:19 -0500 Received: from twister.gmd.de (twister [129.26.8.91]) by mail.gmd.de (8.9.3/8.9.3) with ESMTP id IAA16573 for ; Wed, 15 Mar 2000 08:33:19 +0100 (MET) Received: (from wittig@localhost) by twister.gmd.de (8.8.7/8.8.7) id IAA26624 for axp-list@redhat.com; Wed, 15 Mar 2000 08:33:19 +0100 (MET) Date: Wed, 15 Mar 2000 08:33:18 +0100 From: Georg Wittig To: axp-list@redhat.com Subject: Re: RH 6.1 and Cron? Message-ID: <20000315083318.A26356@twister.gmd.de> Mail-Followup-To: axp-list@redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from morrildl@nycap.rr.com on Tue, Mar 14, 2000 at 09:56:33PM -0500 morrildl@nycap.rr.com wrote: > Has anyone had any trouble using user-defined crontabs with RH 6.1? On my > SX164, I can `crontab -e` and /var/log/cron says yes indeed, the new crontab > gets installed, but it never actually gets triggered. No email saying it > failed, nothing. > > Scheduling tasks via `at` does work; it appears to be only crontabs that > get ignored. Entries in /etc/crontab (such as the log rotations) also work. > > I had a friend test this on Intel, and it does work there, so it seems to > be either an Alpha thing or something I broke (though I don't know what it > could be.) This is an old experience I made again and again on RHx.y for Alpha, on LinuxPPCx.y and sometimes even on RHx.y for Intel. There seems to be a long standing bug that crond most of the time doesn't do what it's supposed to after booting (i.e. spawning cron jobs). It simply does nothing. I guess there's a race condition somewhere in the boot scripts or crond is started a little too early during bootup. I use a work-around in /etc/rc.d/rc.local successfully: stop crond, wait 1 second, restart crond: /etc/rc.d/init.d/crond stop; sleep 1; /etc/rc.d/init.d/crond start does the trick for me. -- Georg Wittig, GMD Georg.Wittig@gmd.de - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Hier arbeiten 500 MHz, 64 MB, ein Esel und ein Pinguin.