ntpd dead but pid file exists
Hi Guys
As the subject says, my ntp daemon keeps failing. /var/log/messages: Code:
Sep 3 11:02:47 spvx10599 ntpd[28882]: ntpd 4.2.4p8@1.1612-o Thu Jan 10 15:17:40 UTC 2013 (1) [root@spvx10599 ntp]# ntpq -p ntpq: read: Connection refused I can ping the servers in the config file: Code:
[root@spvx10599 ntp]# ping 172.18.0.1 I would be very grateful if anyone has any ideas on how to get this working. We are using Red Hat 6.3. Thanks Simon |
Quote:
|
Quote:
I thought it might be the ntpd config which is why I copied the file (scp) from a server that was working and therefore (presumably) is set up correctly. Still no good. If I could understand what it was trying to do then I might be better placed in figuring out whats going wrong. For example, what is the path its trying to reach when it reports the following: Code:
Sep 3 11:02:47 spvx10599 ntpd[28883]: Cannot chdir() to `eth0': No such file or directory Simon |
/var/lib/ntp prolly.
|
Quote:
I checked that location and the drift file did not exist. I tried copying one from a working server but it still did not work: Code:
[root@spvx10599 ntp]# ls -lah |
No that's not how you should do that. Post the complete command line for starting ntpd and its configuration file without comments (use 'grep -v "^#" /path/to/conffile|grep .;').
|
Quote:
I have fixed this issue now. I found that the /etc/sysconfig/ntpd config contained the following: Code:
OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid -g -x -i eth0" Code:
OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid -g" Thanks for all your help. Simon |
Well done fixing that yourself!
|
All times are GMT -5. The time now is 07:29 PM. |