I suppose that the user's program throws an exception if the service
isn't started yet.
I propose this :
while True:
try:
do_what_fails_if_service_isn_t_started
break
except:
time.sleep(0.5)
I've this problem when using wipfw and twisted's reactor.
stephane.poirot
spoirot wrote:
But the big problem is that my service has to alter some registry keys
in HKLM hive, and these changes have to be done after any user login :
indeed,
I would like to set these keys at windows boot in order that when anyone
logs in, the changes take effect. If the changes are
Good morning,
I'm currently building an application which involves two different
processes : one is a service and the other one is a simple client.
My client starts at user's login and the service should start at windows
boot. I say 'should' because it seems that the service
actually starts at
XP and Vista both pull a few tricks to get you logged on before all services
have started - there are no guarantees that all services will be started
before any user programs. It's probably best to just have your client deal
with the situation (either by blindly, but smartly, retrying, or by
stephane.poirot wrote:
Good morning,
I'm currently building an application which involves two different
processes : one is a service and the other one is a simple client.
My client starts at user's login and the service should start at
windows boot. I say 'should' because it seems that the