Hi.
I wrote a service that forks a JVM.
My problem is that when the service receives a SERVICE_CONTROL_STOP, the
stop process might take a while, lets say 10 minutes.
I send SERVICE_STOP_PENDING to SCM, and then I fork a thread that will take
care of stopping the JVM.
In the same time there is another thread that informs periodically SCM about
SERVICE_STOP_PENDING state, until the JVM is stopped, and SERVICE_STOPPED is
sent to SCM .
This works fine on WinNT40 and the Service Panel waits until my 10 minutes
are gone, and then reports that the service was stopped.
However on Win2k Professional when I try to stop the service the pop-up
window (Service Control) with the progression bar appears and when the
progression bar reaches the end I get
‘(ERROR_SERVICE_REQUEST_TIMEOUT) 1053: The service did not respond to the
start or control request in a timely fashion’.
It seems that no matter I do the progression bar increases with the same
speed and at the end I get the previous error. In this moment my service is
in ‘stopping’ mode until the 10 minutes are elapsed and I have no control on
it.
If you have an idea about this problem, or if there is something that I’m
not doing please let me know.
Thanks for helping me.
tudors.
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com