projects
/
wyse_ntpd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
more script updates, added peerstats cleanup
[wyse_ntpd.git]
/
src
/
buildroot-2013.05
/
custom
/
filesystem
/
opt
/
stats_daemon.sh
1
#!/bin/sh
2
3
cldate=`date '+%s'`
4
5
while(true)
6
do
7
date '+%s' >> /var/www/data/ntp.log.$cldate
8
ntpq -c lpe -n |grep "127.127.20" >> /var/www/data/ntp.log.$cldate
9
10
find /var/www/data/stats -mtime +2 -type f -exec rm {} \;
11
12
sleep 30
13
done