ntp - no servers can be used, exiting
From other threads, I have managed to at least set the time straight once with ntpdate. But of course, I want that to be automated by the system. However, it didn't work as I had hoped for:
Code:
bash-4.1# ntpdate 0.pool.ntp.org bash-4.1# nano /etc/ntp.conf Code:
# Sample /etc/ntp.conf: Configuration file for ntpd. Code:
bash-4.1# ntpq -pn One thing that caught my eye though, was that pool.ntp.org, stated: Quote:
Code:
bash-4.1# ls /etc/ntp/ |
Hi,
What happens if you simplify the ntp.conf file? Try this to start with: Quote:
Hope this helps. |
Check that ntpd is running. You should see something like:
Code:
gazl@nix:~$ ps -f -C ntpd If you get permission denied, you may need to chmod 755 /etc/rc.d/rc.ntpd If the time adjustment is too large ntpd may exit on startup. running ntpdate prior to starting it can resolve that. p.s. /etc/ntp.conf has nothing to do with ntpdate. it's for ntpd. when you use ntpdate you have to give it a server on the command line. |
Thanks a lot!
Code:
bash-4.1# ntpq -pn |
It seems to be running:
Code:
bash-4.1# ps -f -C ntpd |
Hi,
The version I posted only connects to time servers and does not configure for being a time server itself, which I believe your posted version does/tries to. Have a look here: LHN - The NTP Server. Hope this clears things up a bit. |
I think those instructions are easier to follow than the official ones. I'm much obliged!
|
You're welcome :)
|
All times are GMT -5. The time now is 12:38 PM. |