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

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 stucks in Starting state

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