LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ntp needs to be restarted before it works properly. (https://www.linuxquestions.org/questions/linux-newbie-8/ntp-needs-to-be-restarted-before-it-works-properly-815762/)

pr_deltoid 06-22-2010 04:03 PM

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.

tredegar 06-22-2010 04:09 PM

Perhaps you are trying to start ntp before your network is up and connected?

TB0ne 06-22-2010 04:11 PM

Quote:

Originally Posted by prdeltoid (Post 4011901)
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

pr_deltoid 06-22-2010 04:16 PM

1 Attachment(s)
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.

pr_deltoid 06-22-2010 04:50 PM

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.


All times are GMT -5. The time now is 03:17 PM.