Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Feb 2012 04:46:53 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        Pawel Jakub Dawidek <pjd@FreeBSD.org>
Cc:        svn-src-head@FreeBSD.org, Guy Helmer <ghelmer@palisadesystems.com>, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org
Subject:   Re: svn commit: r230869 - head/usr.sbin/daemon
Message-ID:  <4F2E7A3D.8080107@FreeBSD.org>
In-Reply-To: <20120205095922.GD30033@garage.freebsd.pl>
References:  <201202011641.q11Gf0j6095461@svn.freebsd.org> <20120204074201.GA1694@garage.freebsd.pl> <74AF334B-CD90-4A43-96C4-1CF69C8EA42B@palisadesystems.com> <20120205095922.GD30033@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigFF0521E5838021636E017BFA
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 02/05/2012 01:59, Pawel Jakub Dawidek wrote:

> I seem to miss positives of the other approach. Leaving stale PIDs in
> pidfile is something we should avoid at all costs, so recommending that=

> in the manual page is not the best recommendation.=20

Which is worse ... potentially stale pidfiles that get cleaned up at
every boot, or stale directories that never do?

I'm also not sure why you think this method will leave behind a stale
pidfile. The idea is that the pidfile is pre-created with the ownership
that daemon is going to su to, for the express purpose of allowing it to
delete the pidfile when the process exits. If you're saying that this
method doesn't work then please point out the problem ASAP because
numerous ports rc.d scripts do this now.


Doug

--=20

	It's always a long day; 86400 doesn't fit into a short.

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



--------------enigFF0521E5838021636E017BFA
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)

iQEcBAEBCAAGBQJPLno+AAoJEFzGhvEaGryElFgH/RvHS89EyN3lc2pyWH+jnkCv
+U8RI1um7BsZXLh5DpqtgawGzz13x5pd8dikDqmbAoqWQwCJfGWksywdiQP+z/KW
0EM/0YKYH09EdzzyI1Vl+gkajreHHLfUTse19vDubCsKuqje4AqmMEmU4fz1ry6z
fNm/UNUG42gJCi0ytL1RlEHc810g+akYkGWknjDav/RDUFINjQxmrNUWOI0WgBUx
OdTg7MhdXK6LWP6kjaB/j2Ur8B5wCrhfrqFQpStVqreVhxl3aOM13wNsEPGHrd2Z
xgSlyMOW/mYHMGXKzccLdSGwEKipGJ+OFYCygSRgyHj4uXuykm2gZFBSFWIP8qo=
=WPR0
-----END PGP SIGNATURE-----

--------------enigFF0521E5838021636E017BFA--



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