From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Feb 20 19:10:46 2009 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C9AC1065673; Fri, 20 Feb 2009 19:10:46 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [91.103.162.4]) by mx1.freebsd.org (Postfix) with ESMTP id CB7C68FC13; Fri, 20 Feb 2009 19:10:45 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 1DBAE19E023; Fri, 20 Feb 2009 19:51:03 +0100 (CET) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 300D119E02A; Fri, 20 Feb 2009 19:51:00 +0100 (CET) Message-ID: <499EFB93.1000602@quip.cz> Date: Fri, 20 Feb 2009 19:50:59 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: stefan@FreeBSD.org References: <200901161413.n0GED8eW067241@freefall.freebsd.org> In-Reply-To: <200901161413.n0GED8eW067241@freefall.freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports-bugs@FreeBSD.org, koitsu@FreeBSD.org, haroldp@internal.org Subject: Re: ports/114106: mail/postgrey does not properly shut down via rc.d script X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2009 19:10:47 -0000 stefan@FreeBSD.org wrote: > Synopsis: mail/postgrey does not properly shut down via rc.d script > > State-Changed-From-To: feedback->closed > State-Changed-By: stefan > State-Changed-When: Fri Jan 16 14:12:18 UTC 2009 > State-Changed-Why: > Feedback timeout, and the port has been updated in the meantime. > > http://www.freebsd.org/cgi/query-pr.cgi?pr=114106 Can somebody reopen it? I can confirm this behavior. There are two problems: 1] wrong rc.d script which doen't accept custom postgrey_pidfile This is the end of the file: -------- pidfile="${postgrey_pidfile}" load_rc_config $name run_rc_command "$1" -------- So if I define my own postgrey_pidfile in rc.conf, this rc script does not use it, because load_rc_config $name is at the end. If I move load_rc_config $name to the top of the file, it works. 2] too long commandline (postgrey_flags) produce different output of ps auxwww and rc shutdown doesn't match the pid + $name ---- this works ---- postgrey_enable="YES" postgrey_pidfile="/var/run/postgrey/postgrey.pid" postgrey_flags="--pidfile=${postgrey_pidfile} \ --inet=10023 -d --user=postgrey --group=postgrey \ --dbdir=/var/db/postgrey --delay=200 --max-age=30 \ --retry-window=2 --greylist-text='You are greylisted'" # ps auxwww | grep postgrey postgrey 66395 0.0 0.3 29420 12028 ?? SsJ 7:41PM 0:00.02 /usr/local/sbin/postgrey --pidfile=/var/run/postgrey/postgrey.pid --inet=10023 -d --user=postgrey --group=postgrey --dbdir=/var/db/postgrey --delay=200 --max-age=30 --retry-window=2 --greylist-text=You are greylisted (perl) --------------------- ---- this doen't ---- postgrey_enable="YES" postgrey_pidfile="/var/run/postgrey/postgrey.pid" postgrey_flags="--pidfile=${postgrey_pidfile} \ --inet=10023 -d --user=postgrey --group=postgrey \ --dbdir=/var/db/postgrey --delay=200 --max-age=30 \ --retry-window=2 --greylist-text='You are greylisted - some very long long long long long long long long long long long test'" # ps auxwww | grep postgrey postgrey 66490 1.1 0.3 29424 12020 ?? SsJ 7:44PM 0:00.02 [perl] --------------------- Tested in Jail on FreeBSD 7.1-STABLE #0: Wed Feb 11 09:56:08 CET 2009 /usr/obj/usr/src/sys/GENERIC amd64 Miroslav Lachman