From owner-freebsd-questions@FreeBSD.ORG Sat Jul 25 08:24:37 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77276106566B for ; Sat, 25 Jul 2009 08:24:37 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4C2F18FC1A for ; Sat, 25 Jul 2009 08:24:36 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n6P8OPgK004807; Sat, 25 Jul 2009 09:24:31 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk n6P8OPgK004807 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1248510271; bh=BTFIcl/wgfh+4PZVJtyZKsXXSh27ifQ3lJAe6m3tgqM=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4A6AC134.2050101@infracaninophile.co.uk>|Date:=20S at,=2025=20Jul=202009=2009:24:20=20+0100|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.22=20(X11/20090724)|MIME-Vers ion:=201.0|To:=20Axel=20|CC:=20freebsd-questions@ freebsd.org|Subject:=20Re:=20Restarting=20daemons=20after=20portup grade/portmanager|References:=20<4A6A3C49.4090403@glemsk.net>|In-R eply-To:=20<4A6A3C49.4090403@glemsk.net>|X-Enigmail-Version:=200.9 5.6|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha256=3B=0 D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20boundary= 3D"------------enig41C0654B5AE3AA8B0D8EA48C"; b=T0oHsZKPrlXwMlZYqqZQE0fNyNxjBfaHUFG+s7I4wOL5z5C7BEiwnzDT7fBRXstTO dwFug4uiWpUg6yc7pMbQW0DECWxFJ7wx9CsHQeSKSVtNMdsgVFM6GWzwBochw0ezIv ksZzdbghdPcAxNn9vg2/7LWTohNqMHZhOW0A/tKM= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4A6AC134.2050101@infracaninophile.co.uk> Date: Sat, 25 Jul 2009 09:24:20 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.22 (X11/20090724) MIME-Version: 1.0 To: Axel References: <4A6A3C49.4090403@glemsk.net> In-Reply-To: <4A6A3C49.4090403@glemsk.net> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig41C0654B5AE3AA8B0D8EA48C" X-Virus-Scanned: clamav-milter 0.95.2 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Restarting daemons after portupgrade/portmanager X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jul 2009 08:24:37 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig41C0654B5AE3AA8B0D8EA48C Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Axel wrote: > Hello! I have a question concerning port upgrades. >=20 > mysql51-server stops automatically during upgrade (using portupgrade or= =20 > portmanager), and is properly started again based on a AFTERINSTALL=20 > setting in pktools.conf. >=20 > So far, so good. But what about the other daemons that still seem to ru= n=20 > after upgrade (Apache, Courier IMAP etc)? Are the new version running=20 > fine after the upgrade, or should I set AFTERINSTALL to do a restart of= =20 > these daemons, to make sure they run the upgraded version? No -- the sample AFTERINSTALL stuff in pkgtools.conf will run any RC scripts the package installs to try and start those services. This will have no effect if: * The daemon is already running * There's no foo_enable=3D"yes" setting in /etc/rc.conf or equivalent.= So daemons like mysql or slapd that get shutdown during the process of updating the port will be restarted, but daemons like apache or snmpd that don't get shutdown will still be running the old version and you'll have to restart them manually, as you will have to configure and start anything newly installed. =20 Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig41C0654B5AE3AA8B0D8EA48C 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.12 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkpqwTkACgkQ8Mjk52CukIwbAACfTF3xhkaMQESGPBWmkZb6vK/T mR8An3efpznAEM6r2usn4zrDvC6R7lp3 =OYb7 -----END PGP SIGNATURE----- --------------enig41C0654B5AE3AA8B0D8EA48C--