From owner-cvs-src@FreeBSD.ORG Thu Aug 25 15:43:55 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 701B316A41F; Thu, 25 Aug 2005 15:43:55 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id E247D43D55; Thu, 25 Aug 2005 15:43:54 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.3/8.13.3) with ESMTP id j7PFhsEB028050; Thu, 25 Aug 2005 08:43:54 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.3/8.13.3/Submit) id j7PFhsDj028049; Thu, 25 Aug 2005 08:43:54 -0700 (PDT) (envelope-from jmg) Date: Thu, 25 Aug 2005 08:43:54 -0700 From: John-Mark Gurney To: Robert Watson Message-ID: <20050825154354.GE30465@funkthat.com> References: <200508241721.j7OHLcNP061118@repoman.freebsd.org> <20050825060448.Q11335@fledge.watson.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050825060448.Q11335@fledge.watson.org> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p1 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html 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 Reply-To: John-Mark Gurney 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 15:43:55 -0000 Robert Watson wrote this message on Thu, Aug 25, 2005 at 06:05 +0100: > On Wed, 24 Aug 2005, Pawel Jakub Dawidek wrote: > > >pjd 2005-08-24 17:21:38 UTC > > > > FreeBSD src repository > > > > Modified files: > > lib/libutil Makefile libutil.h > > Added files: > > lib/libutil pidfile.3 pidfile.c > > Log: > > Add a family of functions for reliable pidfiles handling. > > > > Idea from: jmg > > Discussed on: arch@ > > 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.. just a thought... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."