Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Win32::Service shows service as running

Status
Not open for further replies.

johnv20

Programmer
Sep 26, 2001
292
US
Hi,
I'm running Win32::Service::GetStatus on a number of services .

However the value of CurrentState which is returned for one of these services is constantly 4, i.e. running, even when the service is either stopped or disabled ???

Does anyone have any idea what can be causing this ?


 
It could be set to autostart on completion or error? Check the service properties

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Paul,
service properties are all ok.

Strange thing is it's only this service , all others on the systems being monitored return with correct status.
 
Is it a service being run under SRVANY or some other service 'placeholder'?

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
No service is running as normal.

I'm going to cheat & setup the service to shutdown IIS on a failure.
I'll then monitor IIS & raise an alert if this goes down.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top