Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* RH 6.1 and Cron?
@ 2000-03-15  2:56 morrildl
  2000-03-15  3:43 ` Larry Snyder
  2000-03-15  7:33 ` Georg Wittig
  0 siblings, 2 replies; 4+ messages in thread
From: morrildl @ 2000-03-15  2:56 UTC (permalink / raw)
  To: axp-list


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.)


Can anyone confirm or refute...?


(The crontab entry I am testing is:
* * * * * /bin/echo foo
... which should generate an email every minute.)


Thanks for any info,

Dan Morrill
Computer Scientist, Physicist


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: RH 6.1 and Cron?
  2000-03-15  2:56 RH 6.1 and Cron? morrildl
@ 2000-03-15  3:43 ` Larry Snyder
  2000-03-15  3:55   ` morrildl
  2000-03-15  7:33 ` Georg Wittig
  1 sibling, 1 reply; 4+ messages in thread
From: Larry Snyder @ 2000-03-15  3:43 UTC (permalink / raw)
  To: axp-list

Are we no longer putting the crontabs in /var/spool/cron?
I'd look there first.
Just a thought,
-ls-

<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.)
> 
> 
> Can anyone confirm or refute...?
> 
> 
> (The crontab entry I am testing is:
> * * * * * /bin/echo foo
> ... which should generate an email every minute.)
> 
> 
> Thanks for any info,
> 
> Dan Morrill
> Computer Scientist, Physicist
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: RH 6.1 and Cron?
  2000-03-15  3:43 ` Larry Snyder
@ 2000-03-15  3:55   ` morrildl
  0 siblings, 0 replies; 4+ messages in thread
From: morrildl @ 2000-03-15  3:55 UTC (permalink / raw)
  To: axp-list


Thanks for your reply!  I actually forgot to mention exactly what you
suggest...


On Tue, 14 Mar 2000, Larry Snyder wrote:

> Are we no longer putting the crontabs in /var/spool/cron?
> I'd look there first.
> Just a thought,

I did check that:  /var/spool/cron/<user> is as expected.  You can
`cat` them and they appear correct, and `crontab -l` also lists the proper
contents.


Dan Morrill
Computer Scientist, Physicist


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: RH 6.1 and Cron?
  2000-03-15  2:56 RH 6.1 and Cron? morrildl
  2000-03-15  3:43 ` Larry Snyder
@ 2000-03-15  7:33 ` Georg Wittig
  1 sibling, 0 replies; 4+ messages in thread
From: Georg Wittig @ 2000-03-15  7:33 UTC (permalink / raw)
  To: axp-list

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-03-15  7:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-15  2:56 RH 6.1 and Cron? morrildl
2000-03-15  3:43 ` Larry Snyder
2000-03-15  3:55   ` morrildl
2000-03-15  7:33 ` Georg Wittig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox