Hai,

Sorry to bother you again, however doing
ntpd -s

I got

# tail -f /var/log/daemon
Jul 21 15:04:29 pceng4 ntpd[8943]: listening on 192.168.1.200
Jul 21 15:04:29 pceng4 ntpd[8943]: listening on fe80:1::20d:b9ff:fe14:ef48
Jul 21 15:04:29 pceng4 ntpd[8943]: listening on 192.168.10.200
Jul 21 15:04:29 pceng4 ntpd[8943]: listening on fe80:2::20d:b9ff:fe14:ef49
Jul 21 15:04:29 pceng4 ntpd[8943]: listening on 192.168.3.200
Jul 21 15:04:29 pceng4 ntpd[8943]: listening on fe80:4::20b:6bff:fe87:6739
Jul 21 15:04:29 pceng4 ntpd[8943]: ntp engine ready
Jul 22 15:13:13 pceng4 ntpd[4869]: set local clock to Tue Jul 22 15:13:13 WIT 2008 (offset 86923.596141s)
Jul 22 15:13:13 pceng4 ntpd[8943]: 0 out of 1 peers valid
Jul 22 15:13:13 pceng4 ntpd[8943]: bad peer 10.10.10.33 (10.10.10.33)

# ps auxw |grep ntp
_ntp 8943 0.0 0.3 368 796 ?? Is Mon03PM 0:00.02 ntpd: ntp engine (ntpd) root 31795 0.0 0.2 368 508 ?? Is 3:13PM 0:00.00 ntpd: [priv] (ntpd)
root      9797  0.0  0.3   244   732 p0  S+     3:13PM    0:00.01 grep ntp

my ntpd.conf
# cat /etc/ntpd.conf
# $OpenBSD: ntpd.conf,v 1.8 2007/07/13 09:05:52 henning Exp $
# sample ntpd configuration file, see ntpd.conf(5)

# Addresses to listen on (ntpd does not listen by default)
listen on *

# sync to a single server
server 10.10.10.33
#sensor nmea0

Thanks and best regards,
Riwan

Marc Balmer wrote:
* Alexander Hall wrote:

[...]

True. A little addition for the archives (since it's been a while now):

$ date -r 86908
Fri Jan  2 01:08:28 CET 1970
Oops. My bad. A better approach (combined with correct reading):

$ date -ur 0
Thu Jan  1 00:00:00 UTC 1970
$ date -ur 86908
Fri Jan  2 00:08:28 UTC 1970

So that would mean a little more than _one_day_ and eight minutes... No wonder it would take a few months (I was surprised and not at all convinced by my calculations). :-)

Remember that the ALIX.2/3 boards usually do not have a battery
to backup a realtime clock.  Their clocks always start at 0 when
powered up, and 0 is the epoch, Jan. 1 1970.  A mechanism like
ntpd -s is needed for those boards.

The ALIX.1B/C do have a battery, btw.

- Marc Balmer

Reply via email to