From: Kerem G�mr�kc� on
Hi,

nah, those services grfx(/&%%$/,...

I wanted to restart the "RemoteRegistry" Service and send
it a command from services control application i wrote but
the service stucked in the "StopPending" Status...

I cant stop/start/pause it. Its floating over 30 Minutes in
the StopPending Status. The Service is embedded in a
svchost.exe, so i cant kill it directly. What can i do,..?

Self hosting services kann be easlily terminated but
how to do this with a svchost hosted.exe service?

"Dow" like homer would say,..:-D

Regards

Kerem

--
-----------------------
Beste Gr�sse / Best regards / Votre bien devoue
Kerem G�mr�kc�
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."


From: Kellie Fitton on
On May 26, 4:40 am, "Kerem Gümrükcü" <kareem...(a)hotmail.com> wrote:
> Hi,
>
> nah, those services grfx(/&%%$/,...
>
> I wanted to restart the "RemoteRegistry" Service and send
> it a command from services control application i wrote but
> the service stucked in the "StopPending" Status...
>
> I cant stop/start/pause it. Its floating over 30 Minutes in
> the StopPending Status. The Service is embedded in a
> svchost.exe, so i cant kill it directly. What can i do,..?
>
> Self hosting services kann be easlily terminated but
> how to do this with a svchost hosted.exe service?
>
> "Dow" like homer would say,..:-D
>
> Regards
>
> Kerem
>
> --
> -----------------------
> Beste Grüsse / Best regards / Votre bien devoue
> Kerem Gümrükcü
> Microsoft Live Space:http://kerem-g.spaces.live.com/
> Latest Open-Source Projects:http://entwicklung.junetz.de
> -----------------------
> "This reply is provided as is, without warranty express or implied."



Hi Kerem,

You can use the following API to specify how the service manager
should handle the failure of the service process, and you can have
the SCM to restart the service automatically:

ChangeServiceConfig2() SERVICE_FAILURE_ACTIONS

http://msdn.microsoft.com/en-us/library/ms681988(VS.85).aspx

Kellie.

From: Stefan Kuhr on
Kerem,

Kerem G�mr�kc� wrote:
> Hi,
>
> nah, those services grfx(/&%%$/,...
>
> I wanted to restart the "RemoteRegistry" Service and send
> it a command from services control application i wrote but
> the service stucked in the "StopPending" Status...
>
> I cant stop/start/pause it. Its floating over 30 Minutes in
> the StopPending Status. The Service is embedded in a
> svchost.exe, so i cant kill it directly. What can i do,..?
>
> Self hosting services kann be easlily terminated but
> how to do this with a svchost hosted.exe service?
>
> "Dow" like homer would say,..:-D
>
> Regards
>
> Kerem
>

There are a number of services in today's Windows incarnations that
obviously are not supposed to be stopped and restarted. I recently came
across the requirement to temporarily stop the event log service so it
releases an event log file for a custom event log during uninstallation
of my product, and I encountered a similar phenomenon. So I guess you
have to live with it. Or did I misinterpret your description and it is
only a single computer where stopping remote registry fails whereas it
works on the majority of your systems?

--
S
From: Kerem G�mr�kc� on
Hi Stefan,

this is a situation i encountered on many systems, ranging
from obsolte Windows NT to new Windows Vista Systems.
Sometimes you send a Signal to Stop/Start to a Windows
Service, no matter whether its a Windows Integrated or your
own service and it stucks, or is pending/floating in an indefinite
state. If its a self Hosting, single Exe, you got for a pskill, process -k,
or whatever it terminates the process, but this is difficult, and also
not possible for a svchost.exe housing the service,...

In that case you have two possibilities: Either reboot, or kill the
entire service host, which can lead to a BSOD if its hosting a system
critical Service like the EventLog facillity,...

Anyway,...we have to live with it, you are right!

Regards

Kerem


--
-----------------------
Beste Gr�sse / Best regards / Votre bien devoue
Kerem G�mr�kc�
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
"Stefan Kuhr" <kustt110(a)gmx.li> schrieb im Newsbeitrag
news:OuXfzC9vIHA.1240(a)TK2MSFTNGP02.phx.gbl...
> Kerem,
>
> Kerem G�mr�kc� wrote:
>> Hi,
>>
>> nah, those services grfx(/&%%$/,...
>>
>> I wanted to restart the "RemoteRegistry" Service and send
>> it a command from services control application i wrote but
>> the service stucked in the "StopPending" Status...
>>
>> I cant stop/start/pause it. Its floating over 30 Minutes in
>> the StopPending Status. The Service is embedded in a
>> svchost.exe, so i cant kill it directly. What can i do,..?
>>
>> Self hosting services kann be easlily terminated but
>> how to do this with a svchost hosted.exe service?
>>
>> "Dow" like homer would say,..:-D
>>
>> Regards
>>
>> Kerem
>>
>
> There are a number of services in today's Windows incarnations that
> obviously are not supposed to be stopped and restarted. I recently came
> across the requirement to temporarily stop the event log service so it
> releases an event log file for a custom event log during uninstallation of
> my product, and I encountered a similar phenomenon. So I guess you have to
> live with it. Or did I misinterpret your description and it is only a
> single computer where stopping remote registry fails whereas it works on
> the majority of your systems?
>
> --
> S