Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Mar 2010 12:09:22 +0100
From:      Leslie Jensen <leslie@eskk.nu>
To:        =?UTF-8?B?0JDQvdGC0L7QvSDQmtC70LXRgdGB?= <antoniok.spb@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ntpdate problem
Message-ID:  <4B9A20E2.8010102@eskk.nu>
In-Reply-To: <3f1c29e71003120257h23ecc310w730bbc6396b27a37@mail.gmail.com>
References:  <3f1c29e71003120257h23ecc310w730bbc6396b27a37@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


Антон Клесс skrev 2010-03-12 11:57:
> 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 way
> - 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"

Why don't you enable NTP in rc.conf?

http://www.se.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-ntp.html

# NTP
ntpd_enable="YES"
ntpd_config="/etc/ntp.conf"
ntpd_flags="-p /var/run/ntpd.pid"
ntpd_sync_on_start="YES"

/Leslie




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