More info.  I found  entries in daemon.log:
Nov 30 08:06:04 R2D4 ntpdate[3330]: step time server 69.63.177.217
offset 0.894285 sec
...
Nov 30 11:57:14 R2D4 ntpdate[3434]: can't find host
http://www.pool.ntp.org/zone/us
Nov 30 11:57:14 R2D4 ntpdate[3434]: no servers can be used, exiting

This seems to indicate that ntpdate was run before I made the changes
to anacrontab and rebooted.  Perhaps I did do it manually, but I do
not recall doing that, and I can not find the command in my history.
The only conclusion I can get from this is that ntpdate is already
being run somewhere.  I think I had better remove my changes to
anacrontab, reboot, and look at daemon.log again.

Also, it seem that http://www.pool.ntp.org/zone/us as suggested by
Randall is not working.  Did I miss-type?

-Denis

On Mon, Nov 30, 2009 at 1:19 PM, Denis Heidtmann
<[email protected]> wrote:
> Well, progress.  I decided to use anacron so that I would not be
> updating my clock at each boot.  Once per week should be fine.  And I
> see that anacron is run by default, so all that is needed is to put an
> entry in anacrontab:
>
> # added 11/30/2009 dlh
> # period(days) delay(min.)   identifier             job
>     7                    0             NTPDATE-DEB
> /usr/sbin/ntpdate-debian
>
> After reboot, syslog contains:
>
> Nov 30 11:57:14 R2D4 anacron[3551]: Will run job `NTPDATE-DEB' in 0 min.
> Nov 30 11:57:14 R2D4 anacron[3551]: Jobs will be executed sequentially
> Nov 30 11:57:14 R2D4 anacron[3551]: Job `NTPDATE-DEB' started
> Nov 30 11:57:14 R2D4 /usr/sbin/cron[3596]: (CRON) INFO (pidfile fd = 3)
> Nov 30 11:57:14 R2D4 /usr/sbin/cron[3597]: (CRON) STARTUP (fork ok)
> Nov 30 11:57:14 R2D4 anacron[3551]: Job `NTPDATE-DEB' terminated (exit
> status: 1) (mailing output)
> Nov 30 11:57:15 R2D4 /usr/sbin/cron[3597]: (CRON) INFO (Running @reboot jobs)
> Nov 30 11:57:15 R2D4 anacron[3551]: Normal exit (1 job run)
>
> I take this to mean that there was a problem (exit status: 1).  Yet I
> can find nothing in the mail logs.  man anacron says the mail will go
> to the user (usually root).  Is there some mail log which I am not
> privy to, due to ubuntu handling of root?  I can make an entry in
> anacrontab to cause the mail to go wherever I want by assigning it to
> the MAILTO variable, but I do  not know the format. Is it just a file
> name?
>
> Thanks,
> -Denis
>
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to