Helpful ReplyLockedRestarting Services

Author
Jim F
New Member
  • Total Posts : 4
  • Reward points: 0
  • Joined: 2017/03/24 11:40:09
  • Status: offline
2017/03/29 08:51:09 (permalink)

Restarting Services

We have a service that runs on several servers that the powers-that-be would like restarted every night. I know how to check if a service is down, but is there a way to use IPSentry to just automagically restart them at a particular time?
#1
IPSentrySupport
Support Guy
  • Total Posts : 2059
  • Reward points: 0
  • Joined: 2006/05/16 21:55:52
  • Status: offline
Re: Restarting Services 2017/03/29 13:06:19 (permalink) ☄ Helpfulby Jim F 2017/03/29 13:18:54
 
I would recommend using ipSentry only to monitor the services and instead use Task Scheduler on the respective servers to schedule the service restart at a specific times and frequencies.   Use a daily repeating interval to start either a batch file or a powershell script to issue the NET STOP / NET START commands or use the  Restart-Service cmdlet in a powershell script.
 
Since ipSentry is a constantly polling application and only uses the activity / inactivity schedules to determine whether it is active in a given time frame, it is difficult to schedule items for once per day / per week / etc. 

Using task scheduler to schedule that task on the server keeps it local and using ipSentry to monitor the services will let you know if the start of the services failed.

---
IPSentry Support
RGE, Inc.
http://www.ipsentry.com
http://forum.ipsentry.com

IPSentry® is a Registered Trademark of RGE, Inc.
#2
Jump to:
© 2017 APG vNext Commercial Version 5.5