Quote:
Originally Posted by t0m4s
how do i know if the time service is running?
|
There is a apt-gettable package in Debian and Ubuntu distros called "rdate" that will allow you to query your TOD server.
rdate -p servername
or
rdate -u -p servername (to check the UDP response)
It *can* be used to change the time of a server, so use with care.
Now a small further question, running normal inetd and not xinetd, I'm having problems getting TOD to respond over UDP. It's only allowing TCP by default...
time stream tcp nowait root internal
I added this line for UDP, adjusted my firewall, and rebooted...
time dgram udp wait root internal
But I am still only getting a response on from the one running TCP. Netstat would seem to indicate that the server isn't even listening on the UDP port. Did I do it wrong? On my CentOS box, I have it responding on UDP and TCP, but the CentOS box is using xinetd...