I was using a queue message broker (pika) in the SvcDoRun function that was waiting for a new message (acting like an infinite loop). So actual stop event was not captured properly.Now I stop listening to the queue in the SvcStop function and everything works perfectly.Thanks for your help and
Hi Tim,
> How did you start the service??
I run it with the following command line:
python MyService.py install
python MyService.py start
> How do you know this? How are you monitoring state?
When I go to Windows Services list its state is "Starting" instead of "Running"
so I cannot do any
Hi all,
I am new to 'pywin32' but I was able to create very quickly a new Windows
service for my purpose thanks to your work!
Unfortunatelly when I install and then start my service, it gets stucked in
Starting state and then I have no chance to stop or remove it except by
restarting the