I have a pesky software service that fails every few weeks. It has two components. Service A and Service B. Service B gets in a weird state and stops accepting connections from Service A. The only way out is to restart both services manually, or reboot the server.
I would like to schedule a service restart for A and B on a regular basis. Say every 24 hours. How to go about it?