clamav-freshclam cannot save pid

Bug #133923 reported by Matt LaPlante
2
Affects Status Importance Assigned to Milestone
clamav (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: clamav-freshclam

In a default install of clamav-freshclam, /etc/clamav/freshclam.conf tries to place the PID file for the freshclam daemon in /var/run/clamav, however without clamav-daemon running, the directory is never created, and storing the PID file fails. The freshclam package should check for the directory and create it if it does not exist.

/etc/clamav/freshclam.conf:
PidFile /var/run/clamav/freshclam.pid

clamav-freshclam 0.90.2-0ubuntu1

Revision history for this message
Scott Kitterman (kitterman) wrote :

This is correct. Already fixed in the Gutsy package. The clamav version in feisy-backports also has the fix.

The Feisty work-around for this problem is to manually create the directory.

Changed in clamav:
importance: Undecided → Medium
status: New → Fix Released
Revision history for this message
Matt LaPlante (cybrmatt) wrote :

Good to hear it's fixed, however I have an issue with the workaround. I don't know the details of the implementation of /var/run, however it appears to be cleared at reboot. I've already tried to create the directory, but the daemons wind up dying whenever the machine restarts because the directory goes away. I also tried setting them to use the top-level of /var/run, however the permissions don't seem to allow it.

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 133923] Re: clamav-freshclam cannot save pid

Yes. /var/run is a tempfs and so gets cleared on every reboot. What you
need to do is add a test for the existence of the PID dir and creating if
it's not there in the freshclam init.

Alternatively, upgrade to the version in feisty-backports.

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.