From owner-freebsd-ports@FreeBSD.ORG Sun May 1 18:53:34 2011 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id D2C46106566B for ; Sun, 1 May 2011 18:53:34 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 65-241-43-5.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id CE455150144 for ; Sun, 1 May 2011 18:53:33 +0000 (UTC) Message-ID: <4DBDAC2C.3060903@FreeBSD.org> Date: Sun, 01 May 2011 11:53:32 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.17) Gecko/20110429 Thunderbird/3.1.10 MIME-Version: 1.0 To: FreeBSD Ports X-Enigmail-Version: 1.1.2 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Does your port specify its pid file location in a configuration file? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 May 2011 18:53:34 -0000 If you maintain a port that specifies its pid file location in its configuration file you may be interested in the get_pidfile_from_conf() method that I added to rc.subr recently. The change has been MFC'ed so it's available in RELENG_[78] as well. To see an example of how to implement it in a ports rc.d script (by testing first to see if the function exists) you can take a look at x11/slim. If you're interested in this and would like help and/or a review of your patch feel free to follow up here, or on freebsd-rc@FreeBSD.org. Doug -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/