Hi,
I have two legacy daemon programs, A and B. There are some special requirements on their start sequence.
1) A should be started before B.
2) Whenever you need to restart B, you have to restart A as well. Otherwise the new B process can not work correctly with the existing A.
I'm using Monit to monitor B, but I don't know how to configure Monit such that whenever it find B is dead, it will restart A before it tries to start B. Any suggestion? Thanks.
Regards.
Weikai Xie