1833771 Members
2377 Online
110063 Solutions
New Discussion

why i cant start xntpd?

 
SOLVED
Go to solution
thebeatlesguru
Regular Advisor

why i cant start xntpd?

i have to change ntpsever,so i change it first in /etc/rc.config.d/netdaemons
export NTPDATE_SERVER='NEW SERVER IP'

then i change it in /etc/ntp.conf
server new server ip

then i kill xntpd
but when i input xntpd to restart it,ps -ef cant find xntpd
and i use ntpq -p
it show:
ntpq:read: Can't assign requested address

what's wrong?
hihi
8 REPLIES 8
Animesh Chakraborty
Honored Contributor

Re: why i cant start xntpd?

Hi,
I also faced this problem once.
Only reboot helped me :(

Regards
Animesh
Did you take a backup?
thebeatlesguru
Regular Advisor

Re: why i cant start xntpd?

another thing to say is:
the box i changed is A
i want A to use B's clock,so i think B is A's NTP_server

B is use GPS to its NTP_server,but A cant ping to the box that own GPS ,so i should use B to help A .
hihi
Steven Sim Kok Leong
Honored Contributor

Re: why i cant start xntpd?

Hi,

ntpd listens at UDP port 123:

ntp 123/udp

Verify that the UDP socket has been released after you kill the daemon ie.:

# netstat -f inet

If it is still in LISTEN or TIME_WAIT or CLOSE_WAIT state, then it is still bound to the socket.

You will need to wait for the socket to be released before you can use it on your nptd server.

Hope this helps. Regards.

Steven Sim Kok Leong
Sanjay_6
Honored Contributor

Re: why i cant start xntpd?

Hi,

The standard procedure is not to kill xntpd but to stop and start it if a change in ntp configuration is made and to effect that change.

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

Hope this helps.

Regds
thebeatlesguru
Regular Advisor

Re: why i cant start xntpd?

well ,but now how can i start xntpd?
i have try this:
/sbin/init.d/xntpd start

but look this:
ntpq -p
ntpq: read: Can't assign requested address

hihi
Steven Sim Kok Leong
Honored Contributor
Solution

Re: why i cant start xntpd?

 
thebeatlesguru
Regular Advisor

Re: why i cant start xntpd?

when i start xntpd:
/sbin/init.d/xntpd start
27 Feb 12:16:01 ntpdate[1764]: step time server 192.168.29.3 offset 0.000435 sec
xntpd

is it right?
hihi
Steven Sim Kok Leong
Honored Contributor

Re: why i cant start xntpd?

Hi,

Your xntpd client issued the ntpdate command and appears to have communicated with your xntpd server to retrieve the offset. Looks alright to me.

Hope this helps. Regards.

Steven Sim Kok Leong