| Summary: | /var/log/ntpstats fill with stat files by default | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Arcady Genkin <Genkin"@soup.thpoon.com> |
| Component: | conf | Assignee: | Ollivier Robert <roberto> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.0-STABLE | ||
| Hardware: | Any | ||
| OS: | Any | ||
<<On 22 Apr 2000 20:19:04 -0000, "Arcady Genkin"@thpoon.com, antipode@thpoon.com said: > I think that there should be a script "clean-ntpstats" in /etc/periodic/daily > that would clean up this directory, removing files that are older than, say > three days. Hmmm. If you actually care about these statistics, three days probably isn't nearly long enough to be interesting. On the other hand, if you don't care, there's no point in saving them at all. Seems like an NTP configuration problem. -GAWollman Garrett Wollman <wollman@khavrinen.lcs.mit.edu> writes: > > I think that there should be a script "clean-ntpstats" in > > /etc/periodic/daily that would clean up this directory, removing > > files that are older than, say three days. > > Hmmm. If you actually care about these statistics, three days > probably isn't nearly long enough to be interesting. On the other > hand, if you don't care, there's no point in saving them at all. > Seems like an NTP configuration problem. No, actually I couldn't care less. ;^) My working assumption was that they were saved for a reason, so it would be `polite' to keep at least 3 days' worth of them. Just in case somebody *was* looking at them. Now, if there was *no* reason for saving them at all, then we can include "disable stats" in /etc/ntp.conf". [... 3 minutes later ...] You know what, I don't remember where I got my ntp.conf from? Does FreeBSD provide no default ntp.conf? I only found a blank file in contrib/ntp/scripts/support/conf. Well, if there is no default ntp.conf, then I guess it's up to the user to include "disable stats" in it if he wishes to... I have raised this PR by mistake then, probably. -- Arcady Genkin http://www.thpoon.com Nostalgia isn't what it used to be. Responsible Changed From-To: freebsd-bugs->roberto It seems this partly involves no default ntp.conf - care to take a look? State Changed From-To: open->closed As noted in the audit trail, there is no ntp.conf file installed by default. Users who create one with statistics are expected to clean them up as well. |
By default, if "xntpd_enable" is set to "YES" in rc.conf, divectory /var/log/ntpstats fills with stat files quite rapidly. In four months this directory accumulated over 7 megabytes of files, which is close to half size of my /var/partition (20 Mb, which should be sufficient IMHO). I think that there should be a script "clean-ntpstats" in /etc/periodic/daily that would clean up this directory, removing files that are older than, say three days. Fix: Place this script in /etc/periodic/daily: --------------8<--------------8<--------------- #!/bin/sh # # /etc/periodic/daily/160.clean-ntpstats # if [ -d /var/log/ntpstats ] ; then echo "" echo "Removing stale files from /var/log/ntpstats:" cd /var/log/ntpstats && find * -atime +3 -delete fi How-To-Repeat: Set "xntpd_enable" to YES in /etc/rc.conf.