David, In Bering-uClibc it's fixed in the following way:
# only keep a week's depth of these oldlogs=`find /var/log/ntpstats -type f -mtime +7` [ "$oldlogs" != "" ] && rm $oldlogs As you can see Bering-uClibc uses a newer version of busybox. Eric Spakman > In case anyone else is suffering with the logfiles from the ntpsimpl > package filling up their RAM disk... > > I'm running Bering 1.2, with version 4.1.0-8 of ntpsimpl so that my > router acts as an NTP time server for the local networks. I got the > ntpsimpl package from: > http://leaf.sourceforge.net/devel/jnilo/bering/1.2/packages/ntpsimpl.lrp > > Functionally everything is fine, but I've noticed that the usage of the > /var/log partition gradually increases over time. I've been putting up > with it for a while but I finally decided to try to get to the bottom of > the problem this morning. > > It seems it all comes down to the file /etc/cron.daily/ntpsimpl which > tries to delete NTP logfiles more than 7 days old using a 'find' > command. The syntax for this command is what you'd expect for standard > implementations of find but not for the cut-down version shipped as part > of BusyBox v0.60.3 in Bering 1.2. There seem to be two problems: > - BusyBox find does not understand the '-exec ...' construct at all. > - BusyBox find reverses the sense of the '-N' and '+N' age measures - > at least in v0.60.3 > > Newer versions of BusyBox seem to have addressed the latter problem > (based on what I have read in the BusyBox mailing list archives) but not > the former one. > > For now, I've replaced the line in /etc/cron.daily/ntpsimpl that reads: > find /var/log/ntpstats -type f -mtime +7 -exec rm {} \; > with: > rm -f `find /var/log/ntpstats -type f -mtime -7` > > The '-7' will need changing back to '+7' for newer versions of BusyBox > find. > > -- > David M Brooke <[EMAIL PROTECTED]> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > ------------------------------------------------------------------------ > leaf-user mailing list: [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/leaf-user > SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html > ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html