[python-win32] Multiple Windows Services
Nick Leaton
nickle at gmail.com
Thu Jan 22 14:07:27 CET 2009
I have a need to write a service that can take multiple guises.
So I would like one set of code, and to be able to install a dev service, a
uat service, a test service etc.
so something like
python NickService.py -environment=DEV -config=c:\config\NickService.config
for the install.
This would then install a NickServiceDEV service. I can then install a
second instance of the same service.
Now, I'm having problems getting the 'DEV' information and the config
information when each service is running
The idea being that given the DEV and the config file, I can look up the
other parameters I need to use in the SvcDoRun etc
2 questions.
1. Is this the right approach? I would prefer not to go near the registry if
possible.
2. If not, what is the right way?
Thanks
--
Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20090122/5e19bd34/attachment.htm>
More information about the python-win32
mailing list