Monit不会启动/停止任何进程

我有一个Linux虚拟服务器,安装在一个自定义的位置monit运行

/home/user/bin/monit 

因为这是根据networking主机提供商的唯一合适的位置。 当我安装了监视器,我用./configure –prefix = / home / user

Monit本身运行,并向我发送活动的电子邮件,控制文件的语法是正确的。 但是,monit似乎无法启动或停止任何操作,甚至无法运行最简单的脚本。 例如。 使用'monit stop all',我尝试运行下面的停止命令

 stop = "/bin/bash /home/user/simple_script.sh" 

哪个失败(并在日志中这样说)。 我不知道为什么这是失败的,任何人都可以帮助这个?

我们使用monit talso,在脚本中我们有类似的东西:

 check process cron with pidfile /var/run/crond.pid start program = "/etc/init.d/cron start" stop program = "/etc/init.d/cron stop" group system depends cron_init, cron_bin check file cron_init with path /etc/init.d/cron group system check file cron_bin with path /usr/sbin/cron group system 

你能告诉我们monit日志吗?

monit是否以root身份运行? 如果不是,则可能没有适当的权限来进行这些更改。 快速和肮脏的方式来检查是ps aux | grep monit ps aux | grep monit

是simple_script.sh什么monit也开始? 该停止需要是一个实际的命令,用于停止运行命令,而不仅仅是脚本本身的名称。