1

I am using CentOS release 6.7.

I have 2 services, say A and B. Service B is dependent on service service A. For example, if service A stops, I want service B to stop automatically. Similarly, if service A starts, I want service B to also start automatically after that. (Service A can be running on a remote server)

Is there a tool or any utility which can help me do this?

kosta
  • 163
  • 1
  • 2
  • 7

1 Answers1

0

The Monit tool and the service groups feature can do exactly what you're asking for.

ewwhite
  • 197,159
  • 92
  • 443
  • 809
  • Thanks, it looks useful. I made a small addition to original problem. Services `A` and `B` can be running on different machines. I couldn't find that feature in [Monit](https://mmonit.com/monit/) tool. – kosta Feb 18 '16 at 01:01
  • No, I don't have an option for remote servers... – ewwhite Feb 18 '16 at 01:02