[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] Re: spool full due to posted binarys



Brian D <groups@xxxxxxxxxxxxxxxxxxxx> writes:

> On 21 Jul,  
>      Matthias Andree <matthias.andree@xxxxxx> 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
-- 
_______________________________________________
leafnode-list mailing list
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list
http://leafnode.sourceforge.net/