aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2007-03-01 02:23:12 +0800
committergarga <garga@FreeBSD.org>2007-03-01 02:23:12 +0800
commitfe21e4963ae31ef6c7b7d47b8b34c1c221816bd6 (patch)
tree79617231d95b232fdc62fbafb419513f7137325c /security
parent45810999df7a55416684acf26e624f0fc9e7ba57 (diff)
downloadfreebsd-ports-gnome-fe21e4963ae31ef6c7b7d47b8b34c1c221816bd6.tar.gz
freebsd-ports-gnome-fe21e4963ae31ef6c7b7d47b8b34c1c221816bd6.tar.zst
freebsd-ports-gnome-fe21e4963ae31ef6c7b7d47b8b34c1c221816bd6.zip
Fix clamav-milter startup script like was done on clamav-devel, to make it wait
clamd socket before start. Submitted by: ache@
Diffstat (limited to 'security')
-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"