From owner-freebsd-questions@FreeBSD.ORG Fri Mar 12 14:22:09 2010 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 F09341065672 for ; Fri, 12 Mar 2010 14:22:09 +0000 (UTC) (envelope-from nvidican@m2.vidican.com) Received: from mail-ww0-f54.google.com (mail-ww0-f54.google.com [74.125.82.54]) by mx1.freebsd.org (Postfix) with ESMTP id 920108FC08 for ; Fri, 12 Mar 2010 14:22:09 +0000 (UTC) Received: by wwb24 with SMTP id 24so222430wwb.13 for ; Fri, 12 Mar 2010 06:22:08 -0800 (PST) MIME-Version: 1.0 Sender: nvidican@m2.vidican.com Received: by 10.216.156.203 with SMTP id m53mr630963wek.209.1268403727896; Fri, 12 Mar 2010 06:22:07 -0800 (PST) X-Originating-IP: [136.1.1.154] In-Reply-To: <3f1c29e71003120257h23ecc310w730bbc6396b27a37@mail.gmail.com> References: <3f1c29e71003120257h23ecc310w730bbc6396b27a37@mail.gmail.com> Date: Fri, 12 Mar 2010 09:22:07 -0500 X-Google-Sender-Auth: 3d67f4850239e6ce Message-ID: <795fc2b81003120622o2162463dv6697e26a86188cbe@mail.gmail.com> From: Nathan Vidican To: =?UTF-8?B?0JDQvdGC0L7QvSDQmtC70LXRgdGB?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: User Questions Subject: Re: ntpdate problem 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: Fri, 12 Mar 2010 14:22:10 -0000 man ntpdate: " -s Divert logging output from the standard output (default) to th= e system syslog(3) facility. This is designed primarily for conve- nience of cron(8) scripts. " Change your cron job to 5 * * * * /usr/sbin/ntpdate -s ru.pool.ntp.org This will suppress the email you're getting. Consequently, this doesn't solve the problem of not finding a suitable time server, but for that I'd suggest enabling ntpd. You should do some reading ('man ntpd') or more specifically, if you don't want to leave ntpd running, read-up on 'ntpd -q' which mimmicks the behavior of ntpdate but allows you to use multiple ntp servers. --=20 Nathan Vidican nathan@vidican.com On Fri, Mar 12, 2010 at 5:57 AM, =D0=90=D0=BD=D1=82=D0=BE=D0=BD =D0=9A=D0= =BB=D0=B5=D1=81=D1=81 wrote: > I have the following line in my root cron: > > 5 * * * * /usr/sbin/ntpdate ru.pool.ntp.org > /dev/null > > That must hourly adjust system time via NTP. > But I discover that it works from time to time: some days just once, some > days 5-6 times a day I receive e-mail with text like > > 12 Mar 12:05:05 ntpdate[25368]: no server suitable for synchronization > found > > > But if I log in to server and run > > # /usr/sbin/ntpdate ru.pool.ntp.org > > everything always works OK: it says > > 12 Mar 13:51:57 ntpdate[27256]: adjust time server 80.93.56.210 offset > -0.616000 sec > > > Maybe NTP server doesn't like when some client (my server) asks it such w= ay > - once a hour in same minute - and blocks my queries? > > Any suggestions? > _______________________________________________ > 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" >