Help when switching betwen 1.5 and 1.7: services

Charles Wilson cygwin@cwilson.fastmail.fm
Sun Apr 27 22:47:00 GMT 2008


I've written two scripts that may be useful for others who have both 
cygwin-1.5 and cygwin-1.7 trees installed.  To use them:

put a copy of both scripts into <cygwin-1.5-root>/bin and 
<cygwin-1.7-root>/bin.  Then, when switching from, say, 1.5 to 1.7:

cygwin-1.5$ stop_and_remove_services
cygwin-1.5$ exit

cygwin-1.7$ install_and_start_services

The install_and_atart_services should be customized for your 
installation -- in fact, it might be useful to customize the two 
different versions.  stop_and_remove_services is pretty generic.

install_and_start_services assumes that the services you specify (via 
SERVICES_TO_INSTALL) have already been properly configured using the 
associated foo-config scripts, *in the tree you're invoking the script 
from*.  It's very dumb; everything is hard-coded -- but it's just a 
transition tool and not worthy of the effort to make it totally generic 
or to turn it into a 'package' of some sort.

Download and customize...

--
Chuck

P.S. depends on csih.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: stop_and_remove_services
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20080427/c9dd35b6/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: install_and_start_services
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20080427/c9dd35b6/attachment-0001.ksh>


More information about the Cygwin-apps mailing list