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

Heinrich Schuchardt xypron.glpk at gmx.de
Thu Nov 27 00:05:43 UTC 2014


On 22.11.2014 16:14, Andreas Cadhalpun wrote:
> 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 am using packages

systemd-shim
systemd-sysv

Are you sure I do not need a PID file?

Best regards

Heinrich Schuchardt

>
>> 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.
>



More information about the Pkg-clamav-devel mailing list