Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I use ntpdate before starting ntpd on my board, however, as soon as the time is synchronized with the NTP server, ntpd exits silently with no messages in the logs :
Code:
root@myServer:/# cat /var/log/messages | grep ntp
Feb 10 13:10:16 NOTICE ntpdate[974]: step time server 192.168.29.211 offset 5.610707 sec
Feb 10 13:10:17 NOTICE ntpd[985]: ntpd 4.2.4p0@1.1472-o Thu Jan 6 11:12:03 UTC 2011 (1)
Feb 10 13:10:17 INFO /etc/init.d/ntpd: ntpd startup - OK
Feb 10 13:10:17 INFO ntpd[986]: precision = 10.895 usec
Feb 10 13:10:17 INFO ntpd[986]: Listening on interface #0 wildcard, 0.0.0.0#123 Disabled
Feb 10 13:10:17 INFO ntpd[986]: Listening on interface #1 lo, 127.0.0.1#123 Enabled
Feb 10 13:10:17 INFO ntpd[986]: Listening on interface #2 eth0, 192.168.29.200#123 Enabled
Feb 10 13:10:17 INFO ntpd[986]: kernel time sync status 0040
Feb 10 13:12:15 INFO watchdog[1292]: pidfile: /var/run/ntpd.pid
Feb 10 13:13:32 INFO ntpd[986]: synchronized to 192.168.29.211, stratum 11
Feb 10 13:13:32 NOTICE ntpd[986]: kernel time sync enabled 0001
Feb 10 13:28:39 NOTICE ntpd[986]: time reset +0.215637 s
Feb 10 13:28:45 ERROR watchdog[1292]: pinging process 986 (/var/run/ntpd.pid) gave errno = 3 = 'No such process'
Feb 10 13:28:45 INFO watchdog: Watchdog restarted ntpd
Feb 10 13:28:45 ERROR /etc/init.d/ntpd: ntpd shutdown - FAILED
Feb 10 13:28:46 NOTICE ntpd[1624]: ntpd 4.2.4p0@1.1472-o Thu Jan 6 11:12:03 UTC 2011 (1)
Feb 10 13:28:46 INFO ntpd[1625]: precision = 10.895 usec
Feb 10 13:28:46 INFO ntpd[1625]: Listening on interface #0 wildcard, 0.0.0.0#123 Disabled
Feb 10 13:28:46 INFO ntpd[1625]: Listening on interface #1 lo, 127.0.0.1#123 Enabled
Feb 10 13:28:46 INFO ntpd[1625]: Listening on interface #2 eth0, 192.168.29.200#123 Enabled
Feb 10 13:28:46 INFO ntpd[1625]: kernel time sync status 0040
Feb 10 13:28:46 INFO /etc/init.d/ntpd: ntpd startup - OK
Feb 10 13:32:01 INFO ntpd[1625]: synchronized to 192.168.29.211, stratum 11
Feb 10 13:32:01 NOTICE ntpd[1625]: kernel time sync enabled 0001
Every time I observe a "time reset" message in the log, the ntpd process gets killed somehow however the PID file still exits. I don't have any idea why is this happening. Here are the contents of my ntp.conf file :
Hi. I am not sure I can help, but I do see a LOT of information you have not provided.
What distribution are we talking about?
How did you install ntpd? (I see the NTPD version in the log.)
Why are you not using the startup script for ntpd provided in your distribution package? (assuming several things here)
Are you very sure it is exiting? What have you checked?
What have you tried that did not work, and what behavior did you observe?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.