[Ilugc] How to run a script on the event of another process getting killed

  • From: raju.rajsand@xxxxxxxxx (Rajagopal Swaminathan)
  • Date: Wed Feb 3 11:51:47 2010

Greetings

On Fri, Jan 29, 2010 at 9:02 PM, Saravanan S <dearsaravanan@xxxxxxxxx> wrote:

On Fri, Jan 29, 2010 at 8:31 PM, Abishek Goda <goda.abishek@xxxxxxxxx>wrote:

But, I need to start 'app2' only after 'app' being killed.


how about using  && or ||

I have used the following for ensuring the service dependencies are satisfied.
app1 && app2
will cause app2 to run only if app1 succeeds else don't run app2 at all.


app1 || app2
will cause app2 to run in case app1 fails

HTH

Regards

Rajagopal

Other related posts: