Jump to content

Service Stop Start Notification


Recommended Posts

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
Link to comment
Share on other sites

  • Moderators

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.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...