summaryrefslogtreecommitdiff
path: root/extra/clamav/rc.d
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-03-31 00:01:07 +0000
committerroot <root@rshg054.dnsready.net>2012-03-31 00:01:07 +0000
commit977b78df305a06797773799a7295f2a5f3f013cf (patch)
treec2cad20a10da5fe8f8784db13a2d52b80d0199a3 /extra/clamav/rc.d
parent263884f95012e159a0be10444ef96bbf56e70545 (diff)
Sat Mar 31 00:01:07 UTC 2012
Diffstat (limited to 'extra/clamav/rc.d')
-rw-r--r--extra/clamav/rc.d5
1 files changed, 2 insertions, 3 deletions
diff --git a/extra/clamav/rc.d b/extra/clamav/rc.d
index 04e959903..127c86c0f 100644
--- a/extra/clamav/rc.d
+++ b/extra/clamav/rc.d
@@ -3,8 +3,7 @@
. /etc/rc.conf
. /etc/rc.d/functions
-[[ -f /etc/conf.d/clamav ]] && . /etc/conf.d/clamav
-[[ -d /var/run/clamav ]] || install -d -o clamav -g root /var/run/clamav
+[[ -f /etc/conf.d/clamav ]] && source /etc/conf.d/clamav
PID_FC=$(pidof -o %PPID /usr/bin/freshclam)
PID_CD=$(pidof -o %PPID /usr/sbin/clamd)
@@ -24,7 +23,7 @@ case "$1" in
sleep 1
if [[ $START_FRESHCLAM = yes ]]; then
stat_busy "Starting FreshClam"
- [[ -z $PID_FC ]] && /usr/bin/freshclam -p /var/run/clamav/freshclam.pid -d $FRESHCLAM_OPTS
+ [[ -z $PID_FC ]] && /usr/bin/freshclam -p /run/clamav/freshclam.pid -d $FRESHCLAM_OPTS
if [[ $? -gt 0 ]]; then
stat_fail
else