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

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Sat Nov 22 15:14:49 UTC 2014


Control: forcemerge 767353 -1

Hi Heinrich,

this is a duplicate of 767353, thus I'm merging them.

On 22.11.2014 12:30, Heinrich Schuchardt wrote:
> after a fresh install I found the following in the clamav-freshclam log:
>
> ERROR: Can't save PID to file /var/run/clamav/freshclam.pid: No such
> file or directory

You're using systemd as init, which does not need the PID file.

> I suggest the directory /var/run/clamav should be created by the
> preinstall procedure of clamav-freshclam. The new directory should be
> owned by user clamav.

I think the correct fix would be to move the PIDFile setting from the 
configuration files to the sysvinit init script and to use the --pid 
option there, because it is not needed, when using systemd.

Best regards,
Andreas



More information about the Pkg-clamav-devel mailing list