aboutsummaryrefslogtreecommitdiff
path: root/security/clamav/files
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2008-07-07 20:37:37 +0000
committerRenato Botelho <garga@FreeBSD.org>2008-07-07 20:37:37 +0000
commitf92755b7ed6e34968acef76b4fc4355a32f79692 (patch)
treec7e1efe4193a5a70e3dc9d40eb25a8c2da7a105c /security/clamav/files
parent542a52fa30f603fbae89ae01bb8219481770c944 (diff)
downloadports-f92755b7ed6e34968acef76b4fc4355a32f79692.tar.gz
ports-f92755b7ed6e34968acef76b4fc4355a32f79692.zip
Notes
Diffstat (limited to 'security/clamav/files')
-rw-r--r--security/clamav/files/clamav-milter.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/security/clamav/files/clamav-milter.in b/security/clamav/files/clamav-milter.in
index 509d05e3d42c..1ea17d90eb0d 100644
--- a/security/clamav/files/clamav-milter.in
+++ b/security/clamav/files/clamav-milter.in
@@ -59,6 +59,22 @@ start_precmd()
start_postcmd()
{
+ echo -n "Waiting for clamav-milter socket.. "
+ i=${clamav_milter_socktimeout}
+ while [ $i -ne 0 ]
+ do
+ [ -S "$clamav_milter_socket" ] && break
+ if [ `expr $i % 10` -eq 0 ]; then
+ echo -n "${i}.. "
+ fi
+ sleep 1
+ i=$(($i-1))
+ done
+ echo
+ if [ $i -eq 0 ]; then
+ echo "There is no clamav-milter socket (${clamav_clamd_socket})!"
+ exit 1
+ fi
/bin/chmod ${clamav_milter_socket_mode} ${clamav_milter_socket}
}