Skip to content

Commit f294dc1

Browse files
authored
Fix for /var/run/clamav on CentOS 7
Fix for https://bugs.vestacp.com/issues/393 Solution taken from https://forum.vestacp.com/viewtopic.php?f=40&t=11044#p42704
1 parent ed9450f commit f294dc1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

install/rhel/7/clamav/clamd.service

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ After = syslog.target nss-lookup.target network.target
44

55
[Service]
66
Type = simple
7+
ExecStartPre = /usr/bin/mkdir -p /var/run/clamav
8+
ExecStartPre = /usr/bin/chown -R clam:clam /var/run/clamav
79
ExecStart = /usr/sbin/clamd -c /etc/clamd.conf
810
Restart = on-failure
911
PrivateTmp = true

0 commit comments

Comments
 (0)