From owner-freebsd-questions@FreeBSD.ORG Fri Apr 25 14:16:11 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E38337B401 for ; Fri, 25 Apr 2003 14:16:11 -0700 (PDT) Received: from grumpy.dyndns.org (user-24-214-34-52.knology.net [24.214.34.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68AFE43F85 for ; Fri, 25 Apr 2003 14:16:10 -0700 (PDT) (envelope-from dkelly@grumpy.dyndns.org) Received: from grumpy.dyndns.org (localhost [127.0.0.1]) by grumpy.dyndns.org (8.12.9/8.12.9) with ESMTP id h3PLF614047157 for ; Fri, 25 Apr 2003 16:15:06 -0500 (CDT) (envelope-from dkelly@grumpy.dyndns.org) Received: (from dkelly@localhost) by grumpy.dyndns.org (8.12.9/8.12.9/Submit) id h3PLF6sG047156 for freebsd-questions@freebsd.org; Fri, 25 Apr 2003 16:15:06 -0500 (CDT) Date: Fri, 25 Apr 2003 16:15:06 -0500 From: David Kelly To: freebsd-questions@freebsd.org Message-ID: <20030425211506.GA47060@grumpy.dyndns.org> References: <20030424214413.GC90097@grimoire.chen.org.nz> <20030425091950.GA558@dhumketu.homeunix.net> <3EA92FF1.30809@potentialtech.com> <20030425184813.GA674@dhumketu.homeunix.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030425184813.GA674@dhumketu.homeunix.net> User-Agent: Mutt/1.4.1i Subject: Re: Time Problem in 5.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2003 21:16:11 -0000 On Sat, Apr 26, 2003 at 12:18:13AM +0530, Shantanu Mahajan wrote: > | > | You really haven't provided anywhere near enough information for us to > | diagnose a failure with ntpdate. > > > sudo ntpdate 216.244.192.3 > 26 Apr 00:14:08 ntpdate[717]: no server suitable for synchronization found So what is your problem with ntpdate? Clearly the problem is that 216.244.192.3 did not respond with an answer. Is your network actually up? Is 216.244.192.3 reachable? Is port 123 blocked in your firewall? Scrolling up thru this thread I see where Shantanu says he tried ntpdate in single user mode. Duh. Networking isn't brought up until the system goes multi. No network, no network time. Altho being up to process 717 in single user is unusual. As for the output of sleep(1), his date(1) is rounded down to 1 second in display so if the first date is at 16.9 seconds and a 1 second sleep later might very well be at 18.0 and appear to be 2 seconds later. Sleep is only an approximate in any case. I remember documentation on other Unix systems stating a "sleep 1" might return immediately. So it was common to use a "sleep 2" if you wanted to hope for at least a 1 second delay. -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system.