Re: [python-win32] Service stucks in Starting state

2018-04-12 Thread k3ops
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

[python-win32] Service stuck in starting state

2018-04-12 Thread John Aherne
Have you looked in the event log to see if there are any messages to tell you what might have happened. Regards -- *John Aherne* *www.rocs.co.uk * 020 7223 7567 ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] Service stuck in starting state

2018-04-12 Thread k3ops
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