Jump to content
Pulseway 9.14 🔥

Featured Replies

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

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