1827286 Members
1647 Online
109717 Solutions
New Discussion

Re: time sync problem

 
SOLVED
Go to solution
prasadb
Super Advisor

time sync problem

hello admin,
i want to bring one of my server in time sync with another, i have made the necessary entries in /etc/rc.config.d/netdaemons and /etc/ntp.conf and when i tried to start the xntopd service by /sbin/init.d/xntpd start , then i got this error..


19 May 06:00:02 ntpdate[5989]: the NTP socket is in use, exiting


please help me how to do it

thanx in advance
7 REPLIES 7
Mridul Shrivastava
Honored Contributor

Re: time sync problem

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.
Time has a wonderful way of weeding out the trivial
PVR
Valued Contributor
Solution

Re: time sync problem

Hi

Please stop and start the service as below

/sbin/init.d/xntpd stop

/sbin/init.d/xntpd start

Thanks
Don't give up. Try till success...
Jeeshan
Honored Contributor

Re: time sync problem

Hi

before and during configuration of service files keep in mind to stop the service first. then start the daemon or services.

This type of messages comes when the daemons are still running.
a warrior never quits
Rasheed Tamton
Honored Contributor

Re: time sync problem

Hi Prasad,

If you get such message, always grep for the running processes:

ps -ef|grep ntp

If it is running, just stop and start as the above thread says.

/sbin/init.d/xntpd stop
/sbin/init.d/xntpd start

Check again for the process.

Regards.
Sajjad Sahir
Honored Contributor

Re: time sync problem

Dear Prasad

u can solve this issue simply by using xntpd daemon sevice stop and start
by mentioned by rasheed and others
thanks and regards

Sajjad
Steven E. Protter
Exalted Contributor

Re: time sync problem

Shalom,

A xntpd restart will fix this.

If the system is off by more than an hour, you may need to manually adjust the system time, or npt will fail to update.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
prasadb
Super Advisor

Re: time sync problem

xntpd daemon stop and start has solved the problme, many many thanx