From owner-freebsd-questions@FreeBSD.ORG Wed Apr 20 12:43:25 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 539BA1065677 for ; Wed, 20 Apr 2011 12:43:25 +0000 (UTC) (envelope-from Frank.Brendel@eurolog.com) Received: from dmz.eurolog.com (elomail.eurolog.com [194.50.162.62]) by mx1.freebsd.org (Postfix) with ESMTP id B069F8FC26 for ; Wed, 20 Apr 2011 12:43:24 +0000 (UTC) Received: from elomail.eurolog.com by dmz.eurolog.com via smtpd (for mx1.freebsd.org [69.147.83.52]) with ESMTP; Wed, 20 Apr 2011 14:43:24 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Received: from 10.2.2.157 ([10.2.2.157]) by elomail.eurolog.com ([10.2.1.109]) with Microsoft Exchange Server HTTP-DAV ; Wed, 20 Apr 2011 12:31:18 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable Organization: EURO-LOG AG User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8 Content-class: urn:content-classes:message Date: Wed, 20 Apr 2011 14:31:18 +0200 Message-ID: <55FFF8CD182C864DA8F1C9BA0D63AB8006F2A3@elomail.eurolog.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: relayd.conf interval and timeout values Thread-Index: Acv/Vtk6g3RortkpQiCz6We+VKwuUQ== From: "Frank Brendel" To: Subject: relayd.conf interval and timeout values X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2011 12:43:25 -0000 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 { $host1 $host2 } relay smtp_relay { listen on $host_ext port smtp forward to 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