Can i check java process using crontab (or other way) and if java process does not exist automatically perfom command:

nohup java -jar /home/ec2-user/sringTestBoot-1.0-SNAPSHOT.jar

marked as duplicate by Kusalananda linux May 22 at 15:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.