@@ -7,7 +7,7 @@ LocalSocketGroup clamav
LocalSocketMode 666
# TemporaryDirectory is not set to its default /tmp here to make overriding
# the default with environment variables TMPDIR/TMP/TEMP possible
-User clam
+User clamav
# AllowSupplementaryGroups true
ScanMail true
ScanArchive true
@@ -4,6 +4,8 @@ After = syslog.target nss-lookup.target network.target
[Service]
Type = simple
+ExecStartPre = /usr/bin/mkdir -p /var/run/clamav
+ExecStartPre = /usr/bin/chown -R clamav:clamav /var/run/clamav
ExecStart = /usr/sbin/clamd -c /etc/clamd.conf
Restart = on-failure
PrivateTmp = true