Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #7082

Re: Multiple windows services on the same machine

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <skippy.hammond@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.049
X-Spam-Evidence '*H*': 0.90; '*S*': 0.00; 'parsing': 0.09; 'subject:windows': 0.09; 'am,': 0.14; 'wrote:': 0.14; 'from:name:mark hammond': 0.16; 'reply-to:addr:mhammond': 0.16; 'reply-to:addr:skippinet.com.au': 0.16; 'cc:addr:python-list': 0.17; 'everyone,': 0.19; 'header:In-Reply-To:1': 0.21; 'cc:2**0': 0.22; 'cc:no real name:2**0': 0.23; 'function': 0.25; 'windows': 0.26; 'script': 0.27; 'testing': 0.27; "i'm": 0.27; 'class': 0.29; 'received:209.85.160': 0.29; 'implement': 0.30; 'cc:addr:python.org': 0.30; 'subject:same': 0.30; 'received:209.85.160.46': 0.32; 'received:mail- pw0-f46.google.com': 0.32; 'machine': 0.33; 'install': 0.34; 'header:User-Agent:1': 0.35; 'instances': 0.35; 'module.': 0.35; 'message-id:@gmail.com': 0.36; 'several': 0.36; 'probably': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.37; 'but': 0.38; 'subject:: ': 0.38; 'received:192': 0.38; 'received:209': 0.39; 'skip:m 40': 0.39; 'your': 0.60; 'header:Reply-To:1': 0.72; 'reply-to:no real name:2**0': 0.72; 'definition:': 0.84; 'subject:services': 0.93; 'to:addr:msn.com': 0.96
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:reply-to:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=PX3SLb9A//eApB75/Pwu4EtKkeIi8xRgxBQfR1/Seiw=; b=wIuAVcdztBFP8HiEXre9R4VPTC5l6x/0Vqlo4g3TYkpuPUOwV0o5xsEhdyHdAzOTNH av1ax0CNcwDLdVXL6A1xNeqtCOg5HRO2dJh+DNvcJGq056Wo0UUbKU4RYYcZRVMa24Ib ZKbXQGQbYSQOoQVvAxNI6OJQ069Qcz6ye5EkQ=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=GMquEzB+zoYS5OFyzfKa+f2SDt8R2YVPO4j0256fiqxcJhYd1Y0FUHg/RbLYeGnkQj Fc/dAxJcG1FlhZppmL03ZwQC68db0HROAEqWH/fzDWhKxppaDUaXvdIYoyWaJnBKwAko UNokjYiOksjiUaxDrXBrnoT88fLpMtYV4nR2s=
Date Mon, 06 Jun 2011 23:14:25 +1000
From Mark Hammond <skippy.hammond@gmail.com>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110528 Thunderbird/5.0b1
MIME-Version 1.0
To Massi <massi_srb@msn.com>
Subject Re: Multiple windows services on the same machine
References <4227ae83-a4a3-46b0-bc25-c5a1d89c08a4@32g2000vbe.googlegroups.com>
In-Reply-To <4227ae83-a4a3-46b0-bc25-c5a1d89c08a4@32g2000vbe.googlegroups.com>
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
Reply-To mhammond@skippinet.com.au
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2487.1307366074.9059.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 82.94.164.166
X-Trace 1307366074 news.xs4all.nl 49175 [::ffff:82.94.164.166]:44168
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:7082

Show key headers only | View raw


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 | NextPrevious in thread | Find similar | Unroll thread


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