[leafnode-list] Re: spool full due to posted binarys
Matthias Andree
matthias.andree at gmx.de
Fri Jul 21 19:07:24 CEST 2006
Brian D <groups at planet3.freeuk.co.uk> writes:
> On 21 Jul,
> Matthias Andree <matthias.andree at gmx.de> wrote:
>
>> That would probably just be another "texpire -r" run and perhaps "fetchmail
>> -f".
> I used texpire -r and since then leafnode has worked well.
OK.
> Would there be any problem in running
>
> "find /var/spool/news/* -size +31000c -exec rm '{}' ';'"?
Yes, that's problematic: you would also hit leafnode's administrative
files such as the group list and active files as well as the .overview
(call them header cache if you like, or NOV or XOVER) files.
Instead, you can use (omit the * in /var/spool/news - the find command
traverses the directory tree by itself, and shell expansion of the *
could bypass the pruning of directories with dot in their names):
find /var/spool/news/ -name '*.*' -prune \
-o '(' -type f -size +31000c -exec rm '{}' ';' ')'
The trick here is that, since leafnode maps SOME.GROUP to
/var/spool/news/SOME/GROUP, group directories never have dots in their
names, but all administrative directories and files do. Hence preventing
traversal of directories with a dot in their name prevents damage to the
administrative files.
HTH,
--
Matthias Andree
More information about the leafnode-list
mailing list