Using Monit to Restart Failed Custom App

Home Forums General Using Monit to Restart Failed Custom App

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #31974
    Benjamin Ning
    Participant

    Hello!

    We have a custom app (Python) that runs on the MTCAP and MTCDT models (both AEP). When deployed we have found under strange circumstances the application will display the “Failed” status. I am investigating to cause, but as a stop gap want to just have the app restart when failed.

    I believe it’s possible to set up Monit to restart the app when no longer running. This is mentioned in your custom app webpage with a link to more information, but it isn’t actually specified on the Monit page.

    I assume it monitors whether the app is running and then executes something like :

    app-manager –command restart –appid LOCAL

    if it finds it not running. Could you please give some details/examples on how to set this up?

    Many thanks,

    Ben.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.