From owner-freebsd-questions@FreeBSD.ORG Mon May 26 17:02:35 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BAD18106564A for ; Mon, 26 May 2008 17:02:35 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.30]) by mx1.freebsd.org (Postfix) with ESMTP id 73CEF8FC0A for ; Mon, 26 May 2008 17:02:35 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so1265835ywe.13 for ; Mon, 26 May 2008 10:02:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=1M2vjGXp53hsuQOYe3eogv248Zsnr2AudoGNh7FonDk=; b=pCbSAFtB/dQRVKQeytRV8Fo7ZEPLi+9IrYZ0WTO9Wq8o6xq6poudS4yb9ViPpPTY/1hxzfXIRbWW7eRz68BtQblpMZzT46He4+NmUcQihX7KxpSity5lL7YPz/3yjwEyhqVL0SWGJlua8MikGKBax6742FpG7BwITPRE3TzTO6g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=CQmbVBKIKEdFtebQ14wm6jR+DuQdXtWBwVbaF4IGajdoZNKW+U+G76INWj5d+jNKaf1Fr6a3LKeV2B+N7EUCcBgwJJttsg6jgMySdg9E65+Y+IASV57Sl3bFio3eBgEKBB0rm5Xcd0XYYPITy1lEUXnP76riZTyOvcu0a4o11Mw= Received: by 10.114.195.19 with SMTP id s19mr241318waf.58.1211821345085; Mon, 26 May 2008 10:02:25 -0700 (PDT) Received: by 10.114.150.14 with HTTP; Mon, 26 May 2008 10:02:25 -0700 (PDT) Message-ID: <80f4f2b20805261002x3a875b36s88dc1ea4b38bca87@mail.gmail.com> Date: Mon, 26 May 2008 13:02:25 -0400 From: "Jim Stapleton" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: ntpd - I'm sure I'm setting it up wrong, but I can't figure out how. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2008 17:02:35 -0000 I'm trying to run ntpd to auto-update my computer's time (since I'm not supposed to use ntpdate). /etc/ntp.conf (I've tried without the restrict line): ======================================== server sushi.lyon.edu restrict default ignore driftfile /var/db/ntp.drift ======================================== I can get ntpdate to work fine with this command: $ sudo ntpdate sushi.lyon.edu I have tried this command (with and without the -g), with no success. If I don't have an /etc/ntp.conf, it complains, and it stops complaining when I put /etc/ntp.conf back where it belongs: $ sudo /usr/sbin/ntpd -q -g -f /var/db/ntpd.drift -l /var/log/ntpd.log The contents of /var/log/ntpd.log: ======================================== 26 May 11:46:43 ntpd[16353]: logging to file /var/log/ntpd.log 26 May 11:46:43 ntpd[16353]: ntpd 4.2.0-a Mon May 12 20:39:20 EDT 2008 (1) 26 May 11:46:43 ntpd[16353]: precision = 1.676 usec 26 May 11:46:43 ntpd[16353]: kernel time sync status 2040 26 May 11:47:04 ntpd[16353]: no reply; clock not set ======================================== To verify from the man page -q update MY time, and exit -g if the time difference is huge, just update, don't complain -f drift file for heuristics so I don't have to update from the net. -l log file I've probably made a stupid mistake, but as far as I can gather from the man pages, a few google searches, etc. This should work fine. Any suggestions? Thanks, -Jim Stapleton