[Pkg-clamav-devel] Bug#767353: clamav: ERROR: Can't save PID to file /var/run/clamav/freshclam.pid: No such file or directory

Christoph Anton Mitterer calestyo at scientia.net
Fri May 8 01:39:53 UTC 2015


Control: reopen -1


Hey.

I'm reopening this for now, since it seems the fix didn't get applied to
all installations of wheezy during upgrade to jessie.

AFAIU, part of the solution was to remove:
PidFile /var/run/clamav/freshclam.pid
from
/etc/clamav/freshclam.conf
which is done by the following snipped from the postinst: 
  if `dpkg --compare-versions "$2" lt 0.98.5+dfsg-4~`; then
    # Remove the PidFile variable from the configuration, if it is the
previous default value.
    if [ "$PidFile" = "/var/run/clamav/freshclam.pid" ]; then
      PidFile=''
    fi
  fi

This works fine for wheezy itself, where the version was/is:
0.98.5+dfsg-0+deb7u2
but any site that had enabled e.g. wheezy-updates wouldn't be matched,
since it already has 0.98.7+dfsg-0+deb7u1 and this version's postinst,
doesn't apply the necessary changes.


Cheers,
Chris.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5313 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-clamav-devel/attachments/20150508/dc504db5/attachment.bin>


More information about the Pkg-clamav-devel mailing list