Jump to content

Recommended Posts

Posted

can i set up a rule to restart a service (program) when it have been using less then for example 0.5% for 20 minutes?

 

thanks.

  • Staff
Posted

Hi Rasmus,

 

The only supported condition for services in the Rules system is service status which includes:

  • Stopped
  • Started
  • Paused
  • Pausing
  • Starting
  • Stopping

If you want to restart a windows service if it's using less than 0.5% of the CPU you could do a simple C# plugin that reads a performance counter for a process and restarts the service (read cpu usage performance counter - link and restart a windows service - link).

 

Regards,

Chris

Pulseway Supoprt

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
×
×
  • Create New...