Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ntpd dies quietly
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
davison
n00b
n00b


Joined: 19 Jun 2003
Posts: 63
Location: London, UK

PostPosted: Mon Apr 18, 2005 11:57 am    Post subject: ntpd dies quietly Reply with quote

I've run ntpd for ages on two machines with no trouble. Today, the daemon dies if I run ntpq. The daemon can be seen running using ps for as long as I like, but immediately after running ntpq it dies with no output to any log that I can see..
Code:
bacall root # /etc/init.d/ntpd start
 * Starting ntpd...                                                                                                                                 [ ok ]
bacall root # ps aux | grep ntp
ntp       2335  0.1  1.5   3872  3868 ?        SLs  12:52   0:00 /usr/bin/ntpd -p /var/run/ntpd.pid -u ntp:ntp
root      2341  0.0  0.1   1440   480 pts/0    S+   12:52   0:00 grep ntp
bacall root # ps aux | grep ntp
ntp       2335  0.0  1.5   3872  3868 ?        SLs  12:52   0:00 /usr/bin/ntpd -p /var/run/ntpd.pid -u ntp:ntp
root      2366  0.0  0.1   1440   480 pts/0    S+   12:53   0:00 grep ntp
bacall root # ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
ntpq: read: Connection refused
bacall root # ps aux | grep ntp
root      2383  0.0  0.1   1440   480 pts/0    S+   12:53   0:00 grep ntp
bacall root # /etc/init.d/ntpd stop
 * Stopping ntpd...
start-stop-daemon: warning: failed to kill 2335: No such process
1 pids were not killed
No process in pidfile `/var/run/ntpd.pid' found running; none killed.
 * Failed to stop ntpd

Any ideas on this? I've checked my config (unchanged from when it used to work fine) and haven't re-emerged ntp for some time either.

Cheers,
_________________
public key id:0xE855B3EA
Back to top
View user's profile Send private message
davison
n00b
n00b


Joined: 19 Jun 2003
Posts: 63
Location: London, UK

PostPosted: Mon Apr 18, 2005 12:51 pm    Post subject: [solved] ntpd dies quietly Reply with quote

how often does that happen - you post to a forum, then immediately find the answer to the question you've been tearing your hair out over :(

Looks like at some point /var/log/ntp.log had been recreated. User ntp had no permission to write to it. chown ntp:ntp /var/log/ntp.log && /etc/init.d/ntpd restart solved it.

Cheers
_________________
public key id:0xE855B3EA
Back to top
View user's profile Send private message
pbardet
Tux's lil' helper
Tux's lil' helper


Joined: 11 Dec 2003
Posts: 143
Location: wpg, mb

PostPosted: Fri Apr 22, 2005 12:34 pm    Post subject: Reply with quote

At least, you didn't post for nothing. This was the solution to the problem I've been trying to solve for a few weeks now.
Thanks man for the bright idea.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum