I have some java processes which need to be started by roster:
J1 on X --> J2 on Y --> J3 on Z
An idea comes to my mind is let J1 start automatically and use Nagios + NRPE to start J2 based the J1 state. Is there any better way to do this?
I had an environment like this. Starting the primary (
Likewise, starting up J2 on Y would have this command:
With this in place, starting J1 would bring up all of the rest. Don't forget to account for shutdown as well - as well as the case when a startup is attempted but the process is already running.