summaryrefslogtreecommitdiffstats
path: root/system/clamav/rc.clamav
diff options
context:
space:
mode:
author Robby Workman2012-08-22 02:07:23 +0200
committer Robby Workman2012-08-22 02:07:23 +0200
commit56c2b26f9660587d0e854e2acccf0feaf010bac6 (patch)
tree7c5c912be8192ca6727c68953cca1a7ad605bef2 /system/clamav/rc.clamav
parent4825bf48e5222e684fbdf5da5d82ac61778d096b (diff)
downloadslackbuilds-56c2b26f9660587d0e854e2acccf0feaf010bac6.tar.gz
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 <rworkman@slackbuilds.org>
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