From: Paul J R Date: Sun, 1 Dec 2013 01:34:56 +0000 (+1100) Subject: Added stats bits X-Git-Url: http://git.pjr.cc/?p=wyse_ntpd.git;a=commitdiff_plain;h=863a7a208e30bbb585bf81283fff64fb9bcddcce Added stats bits --- diff --git a/src/buildroot-2013.05/custom/filesystem/etc/init.d/S99final_sequence b/src/buildroot-2013.05/custom/filesystem/etc/init.d/S99final_sequence index 40bab82..d9e113e 100755 --- a/src/buildroot-2013.05/custom/filesystem/etc/init.d/S99final_sequence +++ b/src/buildroot-2013.05/custom/filesystem/etc/init.d/S99final_sequence @@ -38,3 +38,5 @@ then (sleep 30; while(true); do date '+%s' >> /var/www/data/ntp.log.$cldate; ntpq -c lpe -n |grep "127.127.20" >> /var/www/data/ntp.log.$cldate; sleep 30; done) & fi + +mkdir /var/www/data/stats diff --git a/src/buildroot-2013.05/custom/filesystem/opt/ntp/ntp.conf b/src/buildroot-2013.05/custom/filesystem/opt/ntp/ntp.conf index 9c8ac15..e625ae7 100644 --- a/src/buildroot-2013.05/custom/filesystem/opt/ntp/ntp.conf +++ b/src/buildroot-2013.05/custom/filesystem/opt/ntp/ntp.conf @@ -1,6 +1,6 @@ driftfile /tmp/ntp/drift -statsdir /tmp/ntp/stats +statsdir /var/www/data/stats statistics loopstats peerstats clockstats filegen loopstats file loopstats type day enable