clamav-freshclam: fais if log folder doesn't exist

Bug #596479 reported by Alberto Diaz
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
clamav (Ubuntu)
Invalid
Wishlist
Unassigned

Bug Description

Binary package hint: clamav-freshclam

I have my /var/log on a ramdisk, so it's empty on reboot.
If I try launch a manual update,

freshclam
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).

Revision history for this message
RoyK (roysk) wrote :

Why on earth do you have log files on a ram disk? if something goes bad and you get a reboot, you loose the logs.

Now, if you really want them on the ram disk, script up so that the needed directories will be created. This isn't a bug, it's a design issue. IIRC Apache also won't start if you remove /var/log/apache

Revision history for this message
Alberto Diaz (superber) wrote :

Storing logs on a tmpfs is a common practise on netboks with a SSD hd.
I think some kind of wrapper could be used to recreate that directory on the fly

Chuck Short (zulcss)
Changed in clamav (Ubuntu):
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Scott Kitterman (kitterman) wrote :

I don't think it's the job of every package that logs to /var/log to deal with this. If you want to support this configuration, solve it once for all packages that use the directory.

Changed in clamav (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.