Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Apr 2011 14:31:18 +0200
From:      "Frank Brendel" <Frank.Brendel@eurolog.com>
To:        <freebsd-questions@freebsd.org>
Subject:   relayd.conf interval and timeout values
Message-ID:  <55FFF8CD182C864DA8F1C9BA0D63AB8006F2A3@elomail.eurolog.com>

next in thread | raw e-mail | index | archive | help
Hi list,

I have a question regarding the interval and timeout values.

Here is my relayd.conf

host1=3D"10.0.0.1"
host2=3D"10.0.0.2"
host_ext=3D"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=20
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=20
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    =20
root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64


Many thanks
Frank



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55FFF8CD182C864DA8F1C9BA0D63AB8006F2A3>