I have many check program sections which have complex rules for when a process should be running. They utilize a check program which communicates back to monit via exit codes. I'd like to be able to just say:
check program my-process with path "/path/to/check_program --complex args" if status = 1 then kill if status = 2 then start start program = "/path/to/start_script.sh" stop program = "/path/to/stop_program.sh"
Today, I have to say "if status = 1 then exec "/path/to/stop_program.sh". Not a massive problem, but, it's confusing for some users and error prone.