Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #7082
| Date | 2011-06-06 23:14 +1000 |
|---|---|
| From | Mark Hammond <skippy.hammond@gmail.com> |
| Subject | Re: Multiple windows services on the same machine |
| References | <4227ae83-a4a3-46b0-bc25-c5a1d89c08a4@32g2000vbe.googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2487.1307366074.9059.python-list@python.org> (permalink) |
On 6/06/2011 2:54 AM, Massi wrote: > Hi everyone, I'm writing a script which implement a windows service > with the win32serviceutil module. The service works perfectly, but now > I would need to install several instances of the same service on my > machine for testing purpose. > This is hard since the service name is hard-coded in the service class > definition: > > class MyService(win32serviceutil.ServiceFramework) : > _svc_name_ = 'MyService' > _svc_display_name_ = 'Instance ofMyService' It is only hard-coded in the HandleCommandLine function - you probably just want your own argv parsing and call InstallService directly. HTH, Mark
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Multiple windows services on the same machine Massi <massi_srb@msn.com> - 2011-06-05 09:54 -0700 Re: Multiple windows services on the same machine Ben Finney <ben+python@benfinney.id.au> - 2011-06-06 09:01 +1000 Re: Multiple windows services on the same machine Mark Hammond <skippy.hammond@gmail.com> - 2011-06-06 23:14 +1000
csiph-web