1819804 Members
3109 Online
109607 Solutions
New Discussion

NTP socket in use

 
Ngoh Chean Siung
Super Advisor

NTP socket in use

I scheduled NTP daemon to be executed every Sunday through cronjob. Everything is ok around 3 - 4 months until today I received this message as below

29 Aug 02:15:01 ntpdate[22344]: the NTP socket is in use, exiting xntpd

May I know what does it means & how to check whether the socket is in use & which process use it? As I know the default NTP socket is 123.

regards.
1 REPLY 1
Elmar P. Kolkman
Honored Contributor

Re: NTP socket in use

ntpdate is not your ntp daemon. It is a command that set your clock in one step...

xntpd is the daemon, and normally starts once and keeps running until your system shuts down. It only stops if your clock is more than a half hour of the servers you try to synchronise to.

The error message seems to indicate the daemon is still running. You could check that.

If not, there is something else using UDP port 123... You might try 'lsof' to find the process that is causing the error.
Every problem has at least one solution. Only some solutions are harder to find.