Date: Thu, 27 Oct 2011 11:15:00 +0200 From: Ed Schouten <ed@80386.nl> To: ports@FreeBSD.org Subject: ports/162049: The Ports tree lacks a framework to restart services Message-ID: <20111027091500.GM63910@hoeg.nl>
next in thread | raw e-mail | index | archive | help
--sWvRP97dwRHm9fX+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi folks, As crees@ suggested, I'm sending an email to ports@ about this. What really bothers me when I use the FreeBSD Ports tree on one of my systems, is that the behaviour of dealing with services is quite inconsistent. As mentioned in the PR: - If I upgrade Apache, MySQL or PostgreSQL, it does not restart the service, meaning it won't use the freshly installed daemon. This has potential security issues. - If I upgrade Dovecot, it shuts it down during the upgrade, but won't restart it. This means that I have to watch portmaster to complete and must not forget to restart Dovecot afterwards. My question is whether anyone has ever attempted to improve the integration with rc-scripts? In the PR I propose something along these lines: We know exactly which ports install rc scripts (USE_RC_SUBR). Why not run `/usr/local/etc/rc.d/${FOO} status' and `/usr/local/etc/rc.d/${FOO} stop' prior to installation. Based on the return value of the first, we can run `/usr/local/etc/rc.d/${FOO} start' after installation. --=20 Ed Schouten <ed@80386.nl> WWW: http://80386.nl/ --sWvRP97dwRHm9fX+ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQIcBAEBAgAGBQJOqSEUAAoJEG5e2P40kaK7+DsP/33geCXTrIKofHUTHXOYnmyp xwXKZpgJhhr4WlJBWF2I0LeMvahirnMm22VX1JvzzkTs2eXX8cE8QU1tVbTS5U/a 4ZYdR+rXEPEKXcuZPAEhsCZ/p1v2oCuBDFx1EhNjPiKOXB+HL30EceiYq4RS0TlJ YN0uM2mV7WoSbkQAc0PGX8+aim8g1i7Pva8mBPCo/TaHuJ6YREp/k53EAf7DqFgB +aq19G5Ybgvh8QvShzhEiIpXUYWObb9LDgL9Zqm2PNj8Qt4OMf8ftm2/HDLLEqc9 KzqNMBmRkV7+s9G64lG3m0k0rCm5plb8ZZl8OkhG/Az3ynyp328DqgHxO9A14O5T OZjHqL+q8lUab9zCgjZtagg8x52dX/WvlhQUa2tIYUs00o5HgHoq700eooqHjOee 8snLDPktZ/Ue0ETcphs/ZfFBD6gdPoY58WWmWMAgu+XqD3pQOnk0ZHdba4uCkqqQ gCa4fsYmoj4UlgEPjXh5CdVS6KFRKA3DZC86Im5vEGl26sDHkXmDdiAXvBxAq19S sRgFsDSg6Pa67GlzIaLbEHfeKbcdb/dOzf6IT4OvgH4nUxhnYPZpVNwEsBjRtPal Uk9he/eOkGpCU6jTxyL6K7DWKSjnMQemOtFsc05Z7n/L0X6JPi1sTV7+O50zXame knUyO8YURg3Zjm3bdPg6 =QibU -----END PGP SIGNATURE----- --sWvRP97dwRHm9fX+--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111027091500.GM63910>