Is it more reliable to use daemontools
or supervisord
, or that I use crontab that runs a script of mine to keep checking if the process still exists and if not, start it again?
What is the best way to guarantee for sure that a process is always running, and running in a healthy condition? (i.e., it isn't running but stalled in some error, where it should be killed and started again).
Btw, this is a Java process that I start like java -jar app.jar
.
Thanks!