monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[monit] how to restart a second process when a monitored process dies?


From: Weikai Xie
Subject: [monit] how to restart a second process when a monitored process dies?
Date: Wed, 24 Mar 2010 21:16:22 +0800



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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]