Package: clamav-daemon Version: 0.98.7+dfsg-0+deb8u1 Severity: normal Hi!
While running under systemd, clamd cannot create its PID file because the directory /run/clamav/ does not allow the clamav user to create files. 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. Grüße Sven Hartge -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (600, 'unstable'), (400, 'testing'), (200, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.2.0-1-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) _______________________________________________ Pkg-clamav-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-clamav-devel
