Date: Sat, 25 Jul 2009 09:24:20 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Axel <axel@glemsk.net> Cc: freebsd-questions@freebsd.org Subject: Re: Restarting daemons after portupgrade/portmanager Message-ID: <4A6AC134.2050101@infracaninophile.co.uk> In-Reply-To: <4A6A3C49.4090403@glemsk.net> References: <4A6A3C49.4090403@glemsk.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A6AC134.2050101>