Browse Source

Fix clamd

Ernesto Nicolás Carrea 5 years ago
parent
commit
80264145dd
2 changed files with 3 additions and 1 deletions
  1. 1 1
      install/rhel/clamav/clamd.conf
  2. 2 0
      install/rhel/clamav/clamd.service

+ 1 - 1
install/rhel/clamav/clamd.conf

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

+ 2 - 0
install/rhel/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 clamav:clamav /var/run/clamav
 ExecStart = /usr/sbin/clamd -c /etc/clamd.conf
 Restart = on-failure
 PrivateTmp = true