myscript.sh
正在运行,然后我使用config
set daemon 20 with start delay 5
check program myscript with path "/home/myscript.sh"
if status != 0 then exec "/home/myscript.sh"
或
set daemon 20 with start delay 5
check program myscript with path "/bin/bash /home/myscript.sh"
if status != 0 then exec "/home/myscript.sh"
我的配置错了吗?为什么monit创建新流程
# ps -ef | grep myscript.sh
root 1580 1571 0 13:29 ? /bin/bash /home/myscript.sh < created by monit
root 32675 15735 0 13:23 pts/2 /bin/bash /home/myscript.sh