[python-win32] Get errors 7000 and 7009

Tim Roberts timr at probo.com
Mon Mar 26 13:12:50 EDT 2018


Chang Dacool wrote:
>
> The service will fail to start when we reboot the OS in some
> computers, when this happens we will get error code 7000 and 7009 in
> the event viewer.
> 7000: The ServiceName service failed to start due to the following error:
> The service did not respond to the start or control request in a
> timely fashion.
> 7009: A timeout was reached (30000 milliseconds) while waiting for The
> ServiceName service to connect.
>
> We checked our program, the Service timeout was before launching our
> program.
>

I can't tell what you mean.  Are you saying your service sometimes takes
more than 30 seconds to launch?  If so, then you need to figure out why
it takes so long.  If you are waiting for some event during your
startup, perhaps you can reorganize your code so that you defer some of
your initialization until after you enter the main service loop.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list