LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-22-2010, 04:03 PM   #1
pr_deltoid
Member
 
Registered: Jun 2010
Distribution: Fedora
Posts: 289

Rep: Reputation: 41
ntp needs to be restarted before it works properly.


Every time I boot Debian, ntp is not working. All I have to do is restart it and it works fine.
Quote:
home:~# ntpq -p
No association ID's returned
home:~# /etc/init.d/ntp restart
Stopping NTP server: ntpd.
Starting NTP server: ntpd.
home:~# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
clock.team-cymr .STEP. 16 u 142 64 0 0.000 0.000 0.001
mail.freerip.co .STEP. 16 u 57 64 0 0.000 0.000 0.001
173-45-238-221. .STEP. 16 u 15 64 0 0.000 0.000 0.001
mighty.poclabs. 38.117.195.101 4 u 4 64 1 81.437 10.358 0.001
home:~#
I use the default /etc/ntp.conf file that Debian installs automatically and it works fine as long as I restart it after I boot up.
 
Old 06-22-2010, 04:09 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Perhaps you are trying to start ntp before your network is up and connected?
 
Old 06-22-2010, 04:11 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,899

Rep: Reputation: 4262Reputation: 4262Reputation: 4262Reputation: 4262Reputation: 4262Reputation: 4262Reputation: 4262Reputation: 4262Reputation: 4262Reputation: 4262Reputation: 4262
Quote:
Originally Posted by prdeltoid View Post
Every time I boot Debian, ntp is not working. All I have to do is restart it and it works fine.

I use the default /etc/ntp.conf file that Debian installs automatically and it works fine as long as I restart it after I boot up.
Then all you have to do is set the service to start at boot time.
http://www.debian-administration.org...me_with_Debian
http://www.debian.org/doc/FAQ/ch-customizing.en.html
 
Old 06-22-2010, 04:16 PM   #4
pr_deltoid
Member
 
Registered: Jun 2010
Distribution: Fedora
Posts: 289

Original Poster
Rep: Reputation: 41
I've attached the default /etc/init.d/ntp script. Like I said, I haven't changed anything - just installed it using apt-get. It worked as soon as it was installed, then I rebooted and now, like I said, I have to restart.
Quote:
home:~# update-rc.d -n ntp defaults
System startup links for /etc/init.d/ntp already exist.
Attached Files
File Type: txt ntp.txt (1.9 KB, 119 views)

Last edited by pr_deltoid; 06-22-2010 at 04:19 PM.
 
Old 06-22-2010, 04:50 PM   #5
pr_deltoid
Member
 
Registered: Jun 2010
Distribution: Fedora
Posts: 289

Original Poster
Rep: Reputation: 41
Now it's working... ? I meant to post this in "Software" not "Newbie".
The only thing I've done since I started this thread is this:
I kept getting a message on boot that this "blahblah" isn't 8139cp, use 8139too instead. I blacklisted 8139cp to fix the problem. I restarted, and ntp has been working fine now. I'm going to mark this as solved.

Last edited by pr_deltoid; 06-22-2010 at 04:53 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ntp drift file in /etc/ntp instead of /var/lib/ntp - suggestion for a patch in Slack niels.horn Slackware 16 05-07-2009 07:35 PM
problem getting ntp to run properly kaplan71 Linux - Networking 2 01-08-2009 01:18 PM
tcpdump expressions doesn't works properly. sparc86 Linux - Networking 1 11-15-2008 06:46 PM
Monitor works until X is restarted, FC7 TheMalefactor Fedora 7 09-13-2007 03:52 AM
My modem no longer works properly! Paul_Lee Linux - Networking 3 09-02-2003 08:43 AM


All times are GMT -5. The time now is 10:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration