Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Aug 2005 21:54:59 +0100 (BST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, John-Mark Gurney <gurney_j@resnet.uoregon.edu>, src-committers@FreeBSD.org, Pawel Jakub Dawidek <pjd@FreeBSD.org>, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libutil Makefile libutil.h pidfile.3 pidfile.c
Message-ID:  <20050826215256.S33851@fledge.watson.org>
In-Reply-To: <430EE78A.8060306@FreeBSD.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>

next in thread | previous in thread | raw e-mail | index | archive | help

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



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