diff --git a/install/rhel/7/clamav/clamd.service b/install/rhel/7/clamav/clamd.service index 798fef4e0..5513767fc 100644 --- a/install/rhel/7/clamav/clamd.service +++ b/install/rhel/7/clamav/clamd.service @@ -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 clam:clam /var/run/clamav ExecStart = /usr/sbin/clamd -c /etc/clamd.conf Restart = on-failure PrivateTmp = true