From owner-cvs-src@FreeBSD.ORG Thu Aug 25 16:12:06 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7080816A41F; Thu, 25 Aug 2005 16:12:06 +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 236AA43D45; Thu, 25 Aug 2005 16:12:06 +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 177E146B86; Thu, 25 Aug 2005 12:12:05 -0400 (EDT) Date: Thu, 25 Aug 2005 17:12:04 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: John-Mark Gurney In-Reply-To: <20050825154354.GE30465@funkthat.com> Message-ID: <20050825171046.X72462@fledge.watson.org> References: <200508241721.j7OHLcNP061118@repoman.freebsd.org> <20050825060448.Q11335@fledge.watson.org> <20050825154354.GE30465@funkthat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: cvs-src@FreeBSD.org, 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-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Aug 2005 16:12:06 -0000 On Thu, 25 Aug 2005, John-Mark Gurney wrote: >> Something I'd very much like to see is for daemon pid files to start >> being placed in /var/run//.pid, as opposed to directly >> in /var/run. This will allow us to set specific ownership on the >> parent directory for a pid file, so that privilege is not required to >> write out a pid file in a safe place. > > why not add an rc.subr option to precreate the file with the correct > user? I was running up conserver, and I decided to run it as a seperate > user, and since I created it as owned by the conserver user, conserver > just opened and wrote to the file.. We already actually run bind with a pid file in /var/run/named. I'm not sure we need a whole lot of magic, other than having mtree create the directories for base system components, and packages/ports create them for third party components. Robert N M Watson