From owner-freebsd-questions Wed Apr 24 23:50:54 2002 Delivered-To: freebsd-questions@freebsd.org Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by hub.freebsd.org (Postfix) with ESMTP id 994BB37B404 for ; Wed, 24 Apr 2002 23:50:47 -0700 (PDT) Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id DC7B32B83B; Thu, 25 Apr 2002 08:50:15 +0200 (CEST) Received: by k7.mavetju.org (Postfix, from userid 1001) id 1612B397; Thu, 25 Apr 2002 16:50:08 +1000 (EST) Date: Thu, 25 Apr 2002 16:50:07 +1000 From: Edwin Groothuis To: johann@broadpark.no Cc: questions@freebsd.org Subject: Re: ntpd + ntpdate Message-ID: <20020425165007.S56548@k7.mavetju.org> References: <1019716572.3cc7a3dce3351@mail.broadpark.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <1019716572.3cc7a3dce3351@mail.broadpark.no>; from johann@broadpark.no on Thu, Apr 25, 2002 at 08:36:12AM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Apr 25, 2002 at 08:36:12AM +0200, johann@broadpark.no wrote: > I have enabled ntpdate and xntpd in rc.conf and created a ntp.conf hoping > it would keep my clock correct: > > server ntp.online.no prefer > server ntp.uio.no > server timehost.ifi.uio.no > server ntp.tiscali.no > > All these servers are valid, yet I get this when I type 'ntpdate': > > 25 Apr 07:34:43 ntpdate[294]: no servers can be used, exiting > > And when I tail messages: > > Apr 25 07:17:28 ninja ntpd[257]: ntpd 4.1.0-a Fri Apr 5 10:02:24 CEST 2002 > (1) > Apr 25 07:17:28 ninja ntpd[257]: bind() fd 4, family 2, port 123, addr > 0.0.0.0, in_classd=0 flags=1 fails: Address already in use This is a strange one, I have multiple servers too but don't get that one. Maybe it's because you tried to start it twice (it will explain it because there is one with PID 70 and 257). Just adding 'xntpd_enable="YES"' in /etc/rc.conf hsould be enough to start it at run-time. > Apr 25 07:17:53 ninja ntpd[70]: time correction of 3633 seconds exceeds > sanity limit (1000); set clock manually to the correct UTC time. This means that the initial adjustment is too big. Run 'ntpdate ntp.online.no' once, it will set the clock right. After that, the daemon can do it itself with minor adjustments (i.e. less than 1000 seconds :-) Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: bash$ :(){ :|:&};: | http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message