Date: Mon, 27 Oct 2003 11:48:30 -0500 From: "Dan Langille" <dan@langille.org> To: Oliver Eikemeier <eikemeier@fillmore-labs.com> Cc: freebsd-hackers@freebsd.org Subject: Re: non-root process and PID files Message-ID: <3F9D060E.26143.B02C07F@localhost> In-Reply-To: <3F9D4A45.8070400@fillmore-labs.com> References: <3F9CF3F6.8307.ABC1250@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
On 27 Oct 2003 at 17:39, Oliver Eikemeier wrote: > Dan Langille wrote: > > > If a process starts up and does a setuid, should it be writing the > > PID file before or after the setuid? > > > > Two methods exists AFAIK: > > > > 1 - write your PID immediately, and the file is chown root:wheel > > 2 - write your PID to /var/run/myapp/myapp.pid where /var/run/myapp/ > > is chown myapp:myapp > > > > Of the two, I think #1 is cleaner as it does not require another > > directory with special permissions. > > You may have problems removing the file on exit, though. The plan was to not remove it. -- Dan Langille : http://www.langille.org/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F9D060E.26143.B02C07F>