I use Busy Box with Tiny Core Linux in a virtual appliance. I can run NTP Daemon using

/usr/sbin/ntpd -p pool.ntp.org

The problem is it doesn't output any logs to /var/log/ntp.log. Am I looking at the wrong place for logs? What is the best way to confirm ntpd is running properly? (Currently, the only way I can confirm ntpd is running is verifying whether the process is running). I also tried using verbose option.

/usr/sbin/ntpd -d -p pool.ntp.org

Generally it's best to use one of the NTP clients such as ntpq or ntpstat to query your local ntpd once it's been started to confirm it's working.

For example

$ ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
 LOCAL(0)        .LOCL.           5 l  35m   64    0    0.000    0.000   0.000
 97-127-48-73.mp .STEP.          16 u   6d 1024    0    0.000    0.000   0.000
 F-Current.sjela  2 u  113  256  377   81.887  64016.5 1228.28
+ns522433.ip-158      2 u   12  256  377   37.641  62638.8 1168.32
*nu.binary.net       2 u  263  256  377   56.722  63177.5 731.976
$ ntpstat
synchronised to NTP server ( at stratum 3
   time correct to within 63367 ms
   polling server every 256 s


According to this page titled: External Tiny Utilities there's additional clients that are BusyBox specific. There's one titled: ntpclient, according to that page.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.