summaryrefslogtreecommitdiff
path: root/security/clamav
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2007-02-28 18:23:12 +0000
committerRenato Botelho <garga@FreeBSD.org>2007-02-28 18:23:12 +0000
commit3c4507d8da07674d3ef825f14e475daf211c8863 (patch)
treed7d2d62f71f8ab1675231ea3569645500c0e9b7b /security/clamav
parentReset maintainer at his request; he no longer has access to FreeBSD (diff)
Fix clamav-milter startup script like was done on clamav-devel, to make it wait
clamd socket before start. Submitted by: ache@
Notes
Notes: svn path=/head/; revision=186210
Diffstat (limited to 'security/clamav')
-rw-r--r--security/clamav/files/clamav-milter.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/security/clamav/files/clamav-milter.in b/security/clamav/files/clamav-milter.in
index 2176d9a35989..cc455890f817 100644
--- a/security/clamav/files/clamav-milter.in
+++ b/security/clamav/files/clamav-milter.in
@@ -35,12 +35,18 @@ start_precmd()
rm "$clamav_milter_socket"
fi
rc_flags="--pidfile ${pidfile} ${flags:-$clamav_milter_flags} $clamav_milter_socket"
+ for a in 1 2 3 4 5 6 7 8 9 10
+ do
+ [ -S "$clamav_clamd_socket" ] && break
+ sleep 1
+ done
}
# read settings, set default values
load_rc_config $name
: ${clamav_milter_enable="NO"}
: ${clamav_milter_socket="%%CLAMAV_MILTER_SOCKET%%"}
+: ${clamav_clamd_socket="%%CLAMAV_CLAMD_SOCKET%%"}
: ${clamav_milter_flags="--postmaster-only --local --outgoing --timeout=0 --max-children=50"}
run_rc_command "$1"