为什么Monit如果已经运行就会创建多个进程

时间:2016-07-24 18:03:33

标签: linux bash monit

myscript.sh正在运行,然后我使用config

启动Monit
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

0 个答案:

没有答案