So I am having a problem with monit starting a process this is my code:
check process program_1
matching "program_1"
start program = "/home/user1/files/start.sh"
stop program = "/home/user1/files/stop.sh"
Monit is running as root, anyway when I shutdown the process monit will notice it and will try to start it again. However it fails to do so. failed to start: /home/user1/files/start.sh I also tried this:
check process program_1
matching "program_1"
start program = "/bin/bash -c '/home/user1/files/start.sh'"
stop program = "/bin/bash -c '/home/user1/files/stop.sh'"
This doesn't work either. It now says:
Failed to start: /bin/bash
Is there anything i'm missing?