On 31/10/2011 10:41, Dominic Fandrey wrote: > I just wanted to hint that such a function is already in place and I don't > think it would be difficult to add the possibility to start a service.
Restarting a single service is no big deal. Trouble is there are a lot of cases where that just isn't the right thing to do. Suppose you have a very common situation: a web application written in PHP and using a RDBMS. * Upgrades to the RDBMS often require more than just a restart of the DB. Eg. changes to internal schemas require running some external script. (pg_upgrade, mysql_after_upgrade, etc.) * Upgrades to PHP -- given that PHP is modularized, then the sane way of restarting is to take the web app down at the point lang/php5 gets reinstalled, but not bring it up again until all the various php5 modules have been reinstalled. At minimum. If you use, say, eAccelerator, then you almost certainly need to rebuild that before restarting the php web-app. * Of course, how to restart a PHP based web-app is highly context dependent. Generally it means bouncing some other daemon: frequently a web server like apache, or is it lighttpd? Or some sort of FCGI daemon? * Certainly no one would ever write a DB based web-app that wouldn't cope gracefully with the temporary disappearance of its back-end DB. Why, such a thing would be clearly beyond the bounds of possibility, and it would be vanishingly improbable that anyone should ever need to worry about needing to restart a web-app as a consequence of restarting a DB. Basically, I think I can summarize by saying that as soon as you go beyond the simplest and most basic system configurations, there are so many different possibilities that it requires some sort of intelligent agent to manage the upgrade and restart process. Failing the widespread availability of practicable AI, this is where your sysadmins are going to earn their princely salaries. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW
signature.asc
Description: OpenPGP digital signature