Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Feb 2004 21:31:14 +0100
From:      "Remko Lodder" <remko@elvandar.org>
To:        "Henning, Brian" <B.Henning@navitaire.com>, "Chris" <racerx@makeworld.com>, <freebsd-questions@freebsd.org>
Subject:   RE: ntpd
Message-ID:  <20040225203138.A6E4B2B4D6F@mail.evilcoder.org>
In-Reply-To: <20040225202921.1CBF519@mail.elvandar.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Your socket is in use since your ntp deamon wants to synchronise first,
using the sockets you can use.

Wait a bit and the drift file will also be filled i'd guess.

Cheers

--

Kind regards,

Remko Lodder
Elvandar.org/DSINet.org
www.mostly-harmless.nl Dutch community for helping newcomers on the
hackerscene

mrtg.grunn.org Dutch mirror of MRTG

-----Oorspronkelijk bericht-----
Van: owner-freebsd-questions@freebsd.org
[mailto:owner-freebsd-questions@freebsd.org]Namens Henning, Brian
Verzonden: woensdag 25 februari 2004 21:25
Aan: Chris; freebsd-questions@freebsd.org
Onderwerp: RE: ntpd


Chris,

I am trying to use the same setup as you have to get ntpd working.

touch /var/db/ntpd.drift

In my rc.conf file I have to use the following
xntpd_enable="YES"
xntpd_program="/usr/sbin/ntpd"
xntpd_flags="-c /etc/ntp.conf"
xntpd_flags="-p /var/run/ntpd.pid -f /var/db/ntpd.drift"


These didn't work for some reason.
ntpd_enable="YES"
ntpd_program="/usr/sbin/ntpd"
ntpd_flags="-c /etc/ntp.conf"
ntpd_flags="-p /var/run/ntpd.pid -f /var/db/ntpd.drift"

I am able to get the server started but, I still get the two error
messages in my log file.
kernel time discipline status 2040
Un-parsable frequency in /var/db/ntpd.drift


Is this because I have to let the server sit for a couple of hours to
sync with.
server time.nist.gov
server timekeeper.isi.edu


When I type:
ntpdate -u time.nist.gov  #my system clock is updated

When I type:
ntpdate time.nist.gov
25 Feb 14:22:32 ntpdate[254]: the NTP socket is in use, exiting


Any thoughts,

brian

-----Original Message-----
From: Chris [mailto:racerx@makeworld.com]
Sent: Wednesday, February 25, 2004 12:40 PM
To: freebsd-questions@freebsd.org
Subject: Re: ntpd


On Wednesday 25 February 2004 12:33 pm, Brian H wrote:
> Greetings:
> I am trying to setup my bsd box as a ntp server.
> I basically want all machines on my local network to
> sync times with this bsd time server. I start the server
> with the command `ntpd -A -l /var/log/ntpd.log`. I verify that the
> server is running with ps and `netstat -na | grep udp`, but when I
> look in the logs i see the following
>
> /var/log/ntpd.log
> ----
> ntpd 4.1.0-a Mon Oct 27 14:55:18 GMT 2003 (1)
> kernel time discipline status 2040
> Un-parsable frequency in /etc/ntp.drift
>
>
> Any thoughts on what I can do to get this server working. when i try
> to sync from another machine on the network I get the following error:

> no servers can be used, exiting.
>
> Thanks,
>
> Brian

My /etc/rc.conf looks like this - Compare it to yours.

ntpd_enable="YES"
ntpd_program="/usr/sbin/ntpd"
ntpd_flags="-c /etc/ntp.conf"
ntpd_flags="-p /var/run/ntpd.pid -f /var/db/ntpd.drift"


Perhaps touch ntpd.drift in /var/db/ ?

--
Best regards,
Chris
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@freebsd.org"
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040225203138.A6E4B2B4D6F>