aboutsummaryrefslogtreecommitdiff
path: root/security/clamav-devel
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2007-02-24 14:42:08 +0000
committerRenato Botelho <garga@FreeBSD.org>2007-02-24 14:42:08 +0000
commit3206fd54475e913443db2b12b637bcecdd7a097f (patch)
tree2715d251abf6473f6c94b3ac467b1b9ffdb21b89 /security/clamav-devel
parentf702902877aa3454362d149c9e2c331843fc9cfa (diff)
downloadports-3206fd54475e913443db2b12b637bcecdd7a097f.tar.gz
ports-3206fd54475e913443db2b12b637bcecdd7a097f.zip
Notes
Diffstat (limited to 'security/clamav-devel')
-rw-r--r--security/clamav-devel/files/clamav-milter.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/security/clamav-devel/files/clamav-milter.in b/security/clamav-devel/files/clamav-milter.in
index 2176d9a35989..cc455890f817 100644
--- a/security/clamav-devel/files/clamav-milter.in
+++ b/security/clamav-devel/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"