summaryrefslogtreecommitdiff
path: root/system/clamav/rc.clamav
diff options
context:
space:
mode:
Diffstat (limited to 'system/clamav/rc.clamav')
-rw-r--r--system/clamav/rc.clamav3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/clamav/rc.clamav b/system/clamav/rc.clamav
index 43940738a4..67ffbcb319 100644
--- a/system/clamav/rc.clamav
+++ b/system/clamav/rc.clamav
@@ -13,6 +13,9 @@ MILTER=0
clamav_start() {
if [ -x /usr/sbin/clamd ]; then
echo -n "Starting clamd daemon: /usr/sbin/clamd "
+ mkdir -p /var/run/clamav/
+ chown clamav:clamav /var/run/clamav/
+ chmod 771 /var/run/clamav/
/usr/sbin/clamd
echo "."
# Give clamd a chance to create the socket