diff options
author | garga <garga@FreeBSD.org> | 2007-02-24 22:42:08 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2007-02-24 22:42:08 +0800 |
commit | 482d53db513590cdb2baa68155e0076a536e7bfd (patch) | |
tree | 042a394838167db9974d36eb5868c9b0f42c977f /security | |
parent | 532d23d5bbb519a332b4f1d4ffb50405fe34a1e5 (diff) | |
download | freebsd-ports-gnome-482d53db513590cdb2baa68155e0076a536e7bfd.tar.gz freebsd-ports-gnome-482d53db513590cdb2baa68155e0076a536e7bfd.tar.zst freebsd-ports-gnome-482d53db513590cdb2baa68155e0076a536e7bfd.zip |
Change clamav-milter startup script and make it wait for clamd socket.
Submitted by: ache@
Diffstat (limited to 'security')
-rw-r--r-- | security/clamav-devel/files/clamav-milter.in | 6 |
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" |