I'm new to using the win32 module and I've written a little service in
python for myself.  It runs fine and without errors when I use debug:
>python myService.py debug
Debugging service myService - press Ctrl+C to stop.

This works and prints to a log file I set up just fine, so I know it's
working properly

However when I try using the start command on the same service It says
it's started, but hasn't:
>python myService.py start
Starting service myService

Then after any amount of time:
>python myService.py stop
Stopping service myService
Error stopping service: The service has not been started. (1062)

If I use a wait command:
>python myService.py --wait=30 start
Starting service myService
Error starting service: The service did not respond to the start or
control request in a timely fashion.

I'm using python 2.5 and the win32module.  My main class is a subclass
of win32serviceutil.ServiceFramework with all the appropriate function
overridden (__init__, SvcStop, SvcDoRun)  the init function calls the
init function of the ServiceFramework directly (not using super).

When debugging it will continually run it's main loop and does
everything in it I would expect, but seems to not to
want to run when using start.  Obviously no exceptions are thrown when
I run it in debug mode.  Any suggestions, or should I be posting
more info?
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to