Martin Nikolov dijo [Sun, Nov 23, 2008 at 01:50:53AM +0200]:
> I'm playing with Cherokee at the moment and i try few things. So i
> recompiled it a couple of times and i had an idea, cause i saw there is no
> upgrading tool. And it gets to my mind:
> The update can be easy done by shell script that do:
> 1) stopping Cherokee if its running
> 2) copy cherokee.conf to /tmp (for example)
> 3) compile the new version with prefix=/the/old/install/dir
> 3) move /tmp/cherokee.conf at its previous location (this step can be passed
> if the makefile doesn't overwrite existing config file)
> 4) start the service again.
> What do you think? Is it a good idea?

FWIW, that is what users of the packaged versions do - i.e. if you
have Cherokee installed and upgrade from Debian Etch to Lenny, the
upgrade script will convert the 0.5-format to 0.7-format configuration
file, stop the running Cherokee and start a new one. However, this is
feasible as packaged versions adhere to given standards - It is IMHO
still possible, but quite harder, to guess where things are if you are
building your own installation.

You might want to refer to the script I've written to handle this
migrations (of course, 100% based on the Cherokee team's migration
tools). Note that you won't see the stop/start commands, as those are
abstracted away by the packaging system (i.e. it's handled
automatically for packages providing an /etc/init.d/*), but the rest
is taken care of automatically - including whatever is needed to
downgrade manually in case the migration ate your configuration.

http://git.debian.org/?p=collab-maint/cherokee.git;a=blob;f=debian/cherokee.preinst;h=5f24e3fab661d83c75d036fd94e0a5f85432e233;hb=HEAD

Greetings,

-- 
Gunnar Wolf - [EMAIL PROTECTED] - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973  F800 D80E F35A 8BB5 27AF
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to