relayd.conf interval and timeout values
Frank Brendel
Frank.Brendel at eurolog.com
Wed Apr 20 12:43:25 UTC 2011
Hi list,
I have a question regarding the interval and timeout values.
Here is my relayd.conf
host1="10.0.0.1"
host2="10.0.0.2"
host_ext="10.0.1.1"
interval 5
timeout 3000
table <host_table> { $host1 $host2 }
relay smtp_relay {
listen on $host_ext port smtp
forward to <host_table> port smtp interval 15 timeout 14000
check script "/tmp/chk_test.sh"
}
and the little script to test the intervals and timeouts:
#!/usr/local/bin/bash
while true; do
echo "PID: $$ - HOST: $1 - DATE:" $(date) >>/tmp/chk_test.txt
sleep 1
done
As I understand relayd should start the script /tmp/chk_test.sh every 15
seconds and kills it after 14 seconds since the table configuration
overwrites the global configuration.
But relayd starts the script every 5 seconds and kills it after 3 seconds.
Have I misunderstood something?
I've installed relayd-4.6.20090813_5 from the ports.
And the FreeBSD version is:
# uname -vp
FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011
root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Many thanks
Frank
More information about the freebsd-questions
mailing list