Date: Thu, 26 Jan 2012 07:58:35 -0600 From: Guy Helmer <guy.helmer@palisadesystems.com> To: Doug Barton <dougb@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r230541 - head/usr.sbin/daemon Message-ID: <28849462-95FC-455B-8FAE-10B50C41D7ED@palisadesystems.com> In-Reply-To: <4F21301F.6030608@FreeBSD.org> References: <201201251450.q0PEoCe8029243@svn.freebsd.org> <4F21301F.6030608@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 26, 2012, at 4:51 AM, Doug Barton wrote: > On 01/25/2012 06:50, Guy Helmer wrote: >> Author: ghelmer >> Date: Wed Jan 25 14:50:12 2012 >> New Revision: 230541 >> URL: http://svn.freebsd.org/changeset/base/230541 >>=20 >> Log: >> Revert 229667: After some discussion of this change, it seems it is >> better to leave the pidfile open where it was. Add a note to the >> man page describing pidfile strategies to use if the daemon is to >> be run as a user other than root. >=20 > Did you see the message I sent requesting that you mention the > alternative of pre-creating the pidfile with the right permissions, = and > provided a proposed text to that effect? Sorry, I did not find any concrete suggestion for the text in the = messages I've seen. Is this more suitable? Index: usr.sbin/daemon/daemon.8 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- usr.sbin/daemon/daemon.8 (revision 230585) +++ usr.sbin/daemon/daemon.8 (working copy) @@ -61,8 +61,9 @@ functionality. If the .Fl u -option is used, the directory to contain the pidfile must be writable -by the specified user. +option is used, either the pidfile needs to have been pre-created +with appropriate ownership and permissions, or the directory to contain +the pidfile must be writable by the specified user. Note, that the file will be created shortly before the process is actually executed, and will remain after the process exits (although it will be removed if the execution fails). -------- This message has been scanned by ComplianceSafe, powered by Palisade's PacketSure.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?28849462-95FC-455B-8FAE-10B50C41D7ED>