Date: Fri, 16 Sep 2011 19:25:10 +0100 From: Chris Rees <crees@freebsd.org> To: =?ISO-8859-2?Q?=A3ukasz_W=B1sikowski?= <lukasz@wasikowski.net> Cc: lev@freebsd.org, Matthias Andree <matthias.andree@gmx.de>, Eric <freebsdlists-ports@chillibear.com>, ports-list freebsd <freebsd-ports@freebsd.org> Subject: Re: Re-starting daemons across upgrades? (was: Thank you (for making the ports less boring).) Message-ID: <CADLo839dxMAS2Akioi=T3CN3ch4HrH69eyH0LzP6qvUtnzgCuA@mail.gmail.com> In-Reply-To: <4E7392D6.4060309@wasikowski.net> References: <CA99352D.219D1%freebsdlists-ports@chillibear.com> <4E7392D6.4060309@wasikowski.net>
next in thread | previous in thread | raw e-mail | index | archive | help
2011/9/16 =A3ukasz W=B1sikowski <lukasz@wasikowski.net>: > W dniu 2011-09-16 18:17, Eric pisze: > >> Just for ref regarding (c) on the portupgrade wiki page[1] it mentions u= sing >> AFTERINSTALL in pkgtools.conf for doing automatic stop/start/restart. > > I'm using it for a long time on my personal box and it's not that great. > After some updates there is need to prepare the daemon - adjust > configuration for example. Automatic restart will do much harm in that > case. Another example: update when there's apache and php in new > versions, system has also eaccelerator and some pecl's installed. If php > was updated before apache, then apache restart via AFTERINSTALL will > leave you with not working www server (because eaccelerator and pecl's > were not recompiled). Updating ports should never turn off or restart > service - thats my $0.02. > I had a thought about implementing this in bsd.port.mk, but to tell the truth it would be better handled by your port manager of choice-- I can't find an option for portmaster, but I bet someone willing to send a working patch to dougb can earn themselves some brownie points. I would do it myself, but meh.... it doesn't upset me that much. However, having services not restarted after an upgrade can leave you with a) a vulnerable older service and b) a nasty shock when you decide to reboot six months later and it breaks :) Chris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo839dxMAS2Akioi=T3CN3ch4HrH69eyH0LzP6qvUtnzgCuA>