From owner-freebsd-ports@FreeBSD.ORG Sun Dec 11 10:00:15 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2898E1065678 for ; Sun, 11 Dec 2011 10:00:14 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 82AD58FC14 for ; Sun, 11 Dec 2011 10:00:13 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [IPv6:2001:8b0:151:1:fa1e:dfff:feda:c0bb]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id pBBA08Rk061408 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Sun, 11 Dec 2011 10:00:09 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: OpenDKIM Filter v2.4.1 smtp.infracaninophile.co.uk pBBA08Rk061408 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1323597609; bh=Kxlvys73avWhDAN+QC8l+q4gcqHgHlU6X7SDNBH2E0o=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Cc; b=G8nTLq9ufMijMVdYEddOREGSO3a50+fOZwF60n/PRsn9fJQh+Wq9pOJw6MClIPwME AAKI54NgmnsmuZd6zIXSVeJ8zfL45NXp1J5kRk2vEvRVsUE5n+BTNq+L0b/hQ9nhZG qM0cGF4InbPtvXeVqPRWLuKt6Hrn0CU4/t6Fr8TE= Message-ID: <4EE47F1E.9020104@infracaninophile.co.uk> Date: Sun, 11 Dec 2011 09:59:58 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <4ED8C0F1.807@FreeBSD.org> <20111202195555.GD1913@azathoth.lan> <4ED95A95.9040805@FreeBSD.org> <20111209211848.GF59666@azathoth.lan> <4EE27CC5.4010006@FreeBSD.org> <20111211071947.GA57995@DataIX.net> In-Reply-To: <20111211071947.GA57995@DataIX.net> X-Enigmail-Version: 1.3.3 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig2B523ACB452093961C857935" X-Virus-Scanned: clamav-milter 0.97.3 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Subject: Re: again, ports that stop daemons X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2011 10:00:15 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2B523ACB452093961C857935 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 11/12/2011 07:19, Jason Hellenthal wrote: > If end-user is upgrading a package they should be prepared to take > any neccesary action to start the services again after final actions > are complete. Desperate services could have a periodic script that > could handle the checks for these services and I strongly advise > against taking any action whatsoever on starting or restarting or > reloading. Like this? http://www.infracaninophile.co.uk/articles/hotchpotch.html#status-rc Not that I entirely disagree with having a mechanism available to restart daemons on update, but yes, it should definitely be optional and configurable and the docco should explain very clearly that *it will not work properly in all cases*. There are too many corner cases where you've got to worry about the order in which services are restarted, plus things like needing to restart a completely different service when certain ports get upgraded. Consider what needs to happen if you update a commonly used shlib to fix an important problem but without there being an ABI bump... Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig2B523ACB452093961C857935 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7kfycACgkQ8Mjk52CukIyDcgCdHS2dMOrvC0Ol8iz88lyYbGvv JtwAn0PUbnqsvARjOeedp7CZkGk/dm8M =cmp+ -----END PGP SIGNATURE----- --------------enig2B523ACB452093961C857935--