From owner-cvs-all@FreeBSD.ORG Fri Aug 26 20:55:03 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 785A716A41F; Fri, 26 Aug 2005 20:55:03 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2112B43D48; Fri, 26 Aug 2005 20:55:02 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with ESMTP id 2539446BDE; Fri, 26 Aug 2005 16:55:02 -0400 (EDT) Date: Fri, 26 Aug 2005 21:54:59 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Doug Barton In-Reply-To: <430EE78A.8060306@FreeBSD.org> Message-ID: <20050826215256.S33851@fledge.watson.org> References: <200508241721.j7OHLcNP061118@repoman.freebsd.org> <20050825060448.Q11335@fledge.watson.org> <20050825154354.GE30465@funkthat.com> <20050825171046.X72462@fledge.watson.org> <430EE78A.8060306@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: cvs-src@FreeBSD.org, John-Mark Gurney , src-committers@FreeBSD.org, Pawel Jakub Dawidek , cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libutil Makefile libutil.h pidfile.3 pidfile.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 20:55:03 -0000 On Fri, 26 Aug 2005, Doug Barton wrote: > Frankly, the mtree stuff for BIND to do this is a hack, and I would much > rather see this generalized in a useful way in rc.subr. That way all > system stuff can just use it, and all ports can use it as they adopt > rc.subr style startup scripts. This would not be particularly difficult, > if there is wider interest in this, I can whip up a POC. Given that the > rc scripts run as root there shouldn't be any permissions problems to > overcome. My thought would be to simply default the name of the > directory in /var/run to be whatever the name of the script is, and the > file itself to be "pid" as named does it. The nice thing about using mtree is that it uses a data file format to hold the parameters -- the owner, group, permissions, etc, rather than encoding it in a script. I.e., that it is explicitly encoded information rather than implicit. Another nice thing about it is that it doesn't rely on creating the directory at run-time, but assumes it is part of the base install/configuration, and always present. I'm not generally a fan of setting up directory hierarchies by encoding that into scripst and programs, but rather making it an explicit entry in our existing directory database. Robert N M Watson