Jump to content
Sign in to follow this  
ChrisL

Service Stop Start Notification

Recommended Posts

ChrisL

I need to know if a service is still running or not

I can use ServiceControl.au3 and _ServiceRunning(@computername,"stisvc") but is there a way of getting an event notification that a service is starting or stopping without keep manually checking?

Thanks

Edited by ChrisL

Share this post


Link to post
Share on other sites
JLogan3o13

You would configure this on the service itself. Under the properties menu, under fist failure, you can run an application or script to notify you. If it is a service you are creating, I believe you can also set an external application as a dependency, but I would have to look into whether that has changed since XP.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
ChrisL

Thanks, not sure that will work as it's another application is stopping and starting the service and I have an event listener on the WIA service, if another application stops and starts the service the event listener no longer works. So the service isn't actually failing.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×