[Pkg-clamav-devel] Bug#605122: Bug#605122: excessive logging of "Network is unreachable" fills up /var[/log/clamav/freshclam.log]

Stephen Gran sgran at debian.org
Sun Dec 19 16:02:09 UTC 2010


This one time, at band camp, Enrico Zini said:
> although I purged freshclam (and clamav) from my system, a
> "/usr/bin/freshclam -d --quiet" process was left running, which kept the
> huge freshclam.log open, which left its disk space in /var/ allocated
> although I had deleted the file manually.
> 
> freshclam being purged meant that the stop script in /etc/init.d was not
> there anymore to be used to shut freshclam down; killing the freshclam
> process manually obviously put an end to all the sufferings and freed
> that 1.2Gb I needed in my /var.
> 
> I personally have no problems dealing with a scenario of "disk space is
> not freed while the file is still open" coupled with "purging freshclam
> leaves the daemon running" and "freshclam keeps its logfile open all the
> time", but I can see how it all can cause a rather bad friday afternoon
> to many, especiall because at that point "du" and friends will not show
> you where the disk space is used anymore :(

du and df disagreeing is almost always a sign of an open but deleted
file.  lsof is your friend in these cases.

It sounds like the main bug is that the init script failed to kill
freshclam here.  Can you provide any more info or help us to reproduce
it?  I know that freshclam blocks some of the useful shutdown signals
while it's in the chunk of code concerned with downloads (which, without
a network, will be more time than normal), but the initscript does try
very hard to make sure it's killed off even so.

Cheers,
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sgran at debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-clamav-devel/attachments/20101219/5f214e4f/attachment.pgp>


More information about the Pkg-clamav-devel mailing list