Jump to content
affer

restart a service rule

Recommended Posts

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...