Control: reassign -1 clamav-freshclam Control: forcemerge 767353 -1 Hi Sven,
On 05.11.2015 09:49, Sven Hartge wrote: > While running under systemd, clamd cannot create its PID file because > the directory /run/clamav/ does not allow the clamav user to create files. While running under systemd, clamd doesn't need to create a PID file, because systemd keeps track of the running service. > The SysV-Init script chowns this directory before clamd is started but the > systemd unit does not do this, resulting in the following error on every > start: > > Nov 4 16:31:24 XYZ clamd[655]: ERROR: Can't save PID in file > /var/run/clamav/clamd.pid > Nov 4 16:31:08 XZY freshclam[589]: ERROR: Can't save PID to file > /var/run/clamav/freshclam.pid: Permission denied > > The daemon runs fine and does not seem bothered by this error, but other > tools looking for the PID file may throw an error. Also this shows up > on any logscanning tool looking for anomalies in the syslogs. > > The fix seems simple, a little ExecPreStart like this should do: > > | # /etc/systemd/system/clamav-daemon.service.d/chown.conf > | [Service] > | ExecStartPre=/bin/mkdir -p /run/clamav ; /bin/chown clamav /run/clamav > > The same error applies also to the clamav-freshclam package. A simpler fix is to remove the PidFile entry from clamd.conf/freshclam.conf. This should have happened, when upgrading to jessie, but it probably didn't happen for you due to using the wheezy-updates version, see bug #767353 [1]. Thus I'm merging the bugs. This should fix itself, when you upgrade to version 0.98.7+dfsg-2 or larger. Best regards, Andreas 1: https://bugs.debian.org/767353#60 _______________________________________________ Pkg-clamav-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-clamav-devel
