LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ntp server repeatedly stopping/starting (https://www.linuxquestions.org/questions/linux-software-2/ntp-server-repeatedly-stopping-starting-741395/)

Curtor 07-20-2009 08:51 AM

ntp server repeatedly stopping/starting
 
After booting ubuntu server 9.04, and after I login on the terminal, I am getting the message over my terminal "Stopping NTP server ntpd" immediately followed by "Starting NTP server ntpd" about every 20 seconds.

What is causing this? How do I stop it without disabling the ntp server? Is there a more useful log than /var/log/daemon.log that I could be looking at?

This is a section of the output from daemon.log:
Quote:

Jul 20 13:39:02 cyclops-9999 ntpd[3569]: ntpd exiting on signal 15
Jul 20 13:39:02 cyclops-9999 ntpdate[3605]: adjust time server 91.189.94.4 offset -0.071625 sec
Jul 20 13:39:02 cyclops-9999 ntpd[3633]: ntpd 4.2.4p4@1.1520-o Wed May 13 21:10:45 UTC 2009 (1)
I have a wild theory that is based on my editing of the /etc/network/interfaces file. The total number of times that it prints to my terminal seems to be the same as the number of active network devices I have.

catkin 07-20-2009 09:56 AM

Hello Curtor :)
Quote:

Originally Posted by Curtor (Post 3613850)
After booting ubuntu server 9.04, and after I login on the terminal, I am getting the message over my terminal "Stopping NTP server ntpd" immediately followed by "Starting NTP server ntpd" about every 20 seconds.

What is causing this? How do I stop it without disabling the ntp server? Is there a more useful log than /var/log/daemon.log that I could be looking at?

This is a section of the output from daemon.log:


I have a wild theory that is based on my editing of the /etc/network/interfaces file. The total number of times that it prints to my terminal seems to be the same as the number of active network devices I have.

Is the system still booting when this happens? If so your theory is promising. Have a look in /etc/network/if-up.d/. The scripts there are run every time a network interface is brought up.

On my personal desktop computer, network interfaces are seldom brought up except at boot time and I'm happy to (re)start whatever is necessary when bringing up a network interface any other time -- either manually or scripted.

Here are my notes. YMMV
  • avahi-autoipd Only useful for 169.254.0.0/16 networks. Deleted.
  • avahi-daemon The Avahi mDNS/DNS-SD daemon implements Apple's Zeroconf architecture (also known as "Rendezvous" or "Bonjour"). Deleted.
  • mountnfs During boot, NFS is started by /etc/rc.S/S44nfs-common so not needed here. Deleted.
  • ntpdate During boot, NTP is started by /etc/rc2.d/S23ntp so not needed here. Deleted.
  • openssh-server Not used here. Deleted.
  • postfix During boot, postfix is started by /etc/rc2.d/ S20postfix so not needed here. Deleted.
  • uml-utilities May be needed during boot because /etc/network/interfaces includes tunctl_user lines for tap0 and tap1 after the up line. Not changed
  • wpasupplicant Only useful for wireless networks. Not used here. Deleted.
The deletions speeded up the boot usefully.

Best

Charles


All times are GMT -5. The time now is 01:42 PM.