monit-general
[Top][All Lists]
Advanced

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

Restart via install and start script


From: frwa onto
Subject: Restart via install and start script
Date: Sat, 9 Feb 2013 01:03:38 +0800

Dear All,
            I have this script as below. My problem is that if it stop I need to restart the application but I got separate script to install and start it. So how to feed both into the start program? Thank you.

check process cs9000 with pidfile /var/run/wrappercs9000.pid # check your app pid
 
  start program  = 
  stop program  =
 if failed port 9000    # if you want to check your app that listen on port 9000
    then 
    restart

reply via email to

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