Using Monit to Restart Failed Custom App
- This topic has 0 replies, 1 voice, and was last updated 3 years, 4 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
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.