Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Jan 2012 18:58:08 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        Guy Helmer <ghelmer@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r229667 - head/usr.sbin/daemon
Message-ID:  <4F066340.9010507@FreeBSD.org>
In-Reply-To: <201201052248.q05MmaZk059871@svn.freebsd.org>
References:  <201201052248.q05MmaZk059871@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 01/05/2012 14:48, Guy Helmer wrote:
>   Allow daemon(8) to run pidfile_open() before relenquishing privileges
>   so pid files can be written in /var/run when started as root.

I'm not sure how useful this is since when daemon is exiting it won't be
able to remove the pid file (unless I'm missing something).

Isn't it better to pre-create the pid file with the proper permissions
for the unprivileged user?


Doug

-- 

	You can observe a lot just by watching.	-- Yogi Berra

	Breadth of IT experience, and depth of knowledge in the DNS.
	Yours for the right price.  :)  http://SupersetSolutions.com/




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