On Tue, Oct 30, 2001 at 07:06:04PM +1100, [EMAIL PROTECTED] wrote:

> I don't think crond likes having the system time changed like that.

You're probably right, but given that the time is changed almost 50
minutes before the next cron.hourly is run, I wouldn't expect it to
matter.  Since crond wakes up every minute, I'd expect it to sort
itself out within a couple of minutes.

> (I'm only guessing here, feel free to read the source :)

I may have to do that :-)  Slug's been quiet today so I thought I'd
give everyone something to think about.

> Do the other machines run ntpdate?

One of the others does with no ill effects on crond.

> Do the other machines lose 0.2 seconds an hour?

I'm not sure, the one running ntpdate is remote and is currently
offline.

> Is there any reason why you're not running ntpd?

Only because running ntpdate hourly gives more than enough accuracy for
our needs, and it was easy.  I've never setup ntpd.  Until now I've not
cared enough to figure out how to do it.

> I think ntpd will eventually stabilise the clock so it won't
> drift so much. (you can do it by hand as well I think,
> /etc/adjtime)

The machine has been up for 75 days.  If it's not stabilised by now
it's never going to be.

> You could artificially add 2 seconds to the clock and see what happens.
> (my guess, cron would run the scripts 2 seconds early, then rerun the 
> scripts again)

If the clock is changed close to the time that the job is scheduled, I'd
expect the job to be run twice or not at all.  If it's changed nearly an
hour earlier, I'd expect crond to run it once only.  I certainly
wouldn't expect it to run the job *three* times (this doesn't happen
often, but it has happened more than once in the last couple of weeks).

> Or, you could reload crond after ntpdate runs.

> Keep in mind that I'm making all this up as I go.

And you were doing so well until that last suggestion ;-)


Cheers,

John
-- 
whois [EMAIL PROTECTED]
GPG key id: 0xD59C360F

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to