diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/clamav/files/clamav-milter.in | 6 |
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" |