View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 9 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Nov 13, 2005 5:20 pm 
Offline
Joined: Wed Oct 26, 2005 4:54 pm
Posts: 98
ok, so i try and run the ntp thing that will update the time to the one specified in the arguments.

so hers what it looked like:

su
ntpddate ntp1.sf-bay.org
12 NOV 13:25:11 ntpdate [4902]:
the ntp socket is in use, exiting


ok, so what does this mean, how do i fix it?

thanks for your help


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 13, 2005 5:34 pm 
Offline
Joined: Sun Jun 12, 2005 2:39 pm
Posts: 464
Location: UK
u need to stop "ntp-server", then you can use ntpdate

If you want to stop it starting on boot, run as root:

update-rc.d -f ntp-server remove


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 13, 2005 6:04 pm 
Offline
Joined: Wed Oct 26, 2005 4:54 pm
Posts: 98
ok, thanks, i didnt even know that was running.

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 13, 2005 7:30 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,
This seems to be something new that cesman added to A22. Rather than immediately disable it, see if you can use it. You can then set all your internal boxes to it also as it is a server. Just forget about ntpdate for a day or two and use the already running server.

There is one file in /etc/ntp,conf that holds the server you want to sync with.

The default should be fine,
server pool.ntp.org

I changed mine to narrow the search
server north-america.pool.ntp.org

You can check to see what is going on with the system using the ntpq tool. Give it a day or so as you may like it.

$ ntpq
at the ntpq> enter a ? to see the options
$ ntpq> ?
enter peers to see who the server it is working with and details
$ ntpq> peers
$ ntpq> quit

Learn more by entering
$ man ntpd

Mike


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 13, 2005 10:00 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
R5A22 sets up ntp by default. As far as I can tell "it just plain works" my box is now constantly dead on what http://www.time.gov/ shows for my timezone. You shouldn't need to run ntpdate seperately.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 9:16 am 
Offline
Joined: Wed Apr 27, 2005 1:02 pm
Posts: 58
Darth, is your time out by a constant number of hours? Or is it just gaining time very quickly?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 1:25 pm 
Offline
Joined: Sun Jul 24, 2005 4:16 pm
Posts: 508
Location: Ft. Worth TX
How often does it check NTP ? I'm on a modem, not a LAN, so the startup check doesn't find a server. With A16 I used to quit myth, open the modem & do mythfilldatabase & follow with a ntpdate command. Can't do the ntpdate now. How long would the modem need to be left running with Myth up, to do a time check ?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 4:14 pm 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
If you followed the command of mad above i.e.:
Code:
update-rc.d -f ntp-server remove
this will stop the automatic ntp update process and you will then be able to run the update manually as you previously did.

With my scipt that is on this forum somewhere it does the first update on boot, so if you connected you internet connection and then rebooted your Mythbox it would update.

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 4:39 pm 
Offline
Joined: Sun Jul 24, 2005 4:16 pm
Posts: 508
Location: Ft. Worth TX
I understand the 'fix' will let me run it manually, the question is just leave it alone ?
A reboot will drop my modem connection, so i won't get it at startup. If it runs say hourly, leaving the modem run while Myth is up would eventually get an update. So I'm asking how frequently does it query a server ?


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 15 guests


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 post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu