From 56c2b26f9660587d0e854e2acccf0feaf010bac6 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Tue, 21 Aug 2012 19:07:23 -0500 Subject: system/clamav: /var/run/clamav/ must exist, so create in rc.clamav This is for the admins who decide to symlink /var/run to /run (thereby putting the piddir on a tmpfs, which does not survive reboots)... Signed-off-by: Robby Workman --- system/clamav/rc.clamav | 3 +++ 1 file changed, 3 insertions(+) (limited to 'system/clamav/rc.clamav') 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 -- cgit v1.2.3