From owner-freebsd-ports@FreeBSD.ORG Sun May 23 03:13:20 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25DA116A4CE for ; Sun, 23 May 2004 03:13:20 -0700 (PDT) Received: from genius.tao.org.uk (genius.tao.org.uk [212.135.162.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id D608943D4C for ; Sun, 23 May 2004 03:13:19 -0700 (PDT) (envelope-from joe@genius.tao.org.uk) Received: by genius.tao.org.uk (Postfix, from userid 100) id E8D0442DD; Sun, 23 May 2004 11:13:00 +0100 (BST) Date: Sun, 23 May 2004 11:13:00 +0100 From: Josef Karthauser To: ports@freebsd.org Message-ID: <20040523101300.GA43113@genius.tao.org.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8t9RHnE3ZwKMSgU+" Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: portupgrade and daemons. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 May 2004 10:13:20 -0000 --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable A number of ports run daemons, such as postfix, which are started in /usr/local/tc/rc.d. Portupgrade doesn't appear to know anything about these, and so it will quite happily attempt to upgrade a daemon that is still running. Idealally it ought to DTRT, which I guess is some combination of shutdow the existing port down, upgrade it and then restart it. There are some rudiments of knowledge about rc.d/ scripts built into the Mk subsystem so I wonder whether it's possible to hook into that in some way. Thoughts welcome. Joe --=20 Josef Karthauser (joe@tao.org.uk) http://www.josef-k.net/ FreeBSD (cvs meister, admin and hacker) http://www.uk.FreeBSD.org/ Physics Particle Theory (student) http://www.pact.cpes.sussex.ac.uk/ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D An eclectic mix of fact an= d theory. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --8t9RHnE3ZwKMSgU+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iEYEARECAAYFAkCweSwACgkQXVIcjOaxUBbFkwCgt0LgCm4dkE5sVtyLzIL5aigp aQEAn1VI4/TC3drolmtI/42trGPWljlW =hVKv -----END PGP SIGNATURE----- --8t9RHnE3ZwKMSgU+--