在我的.monitrc中
check process macupdate
matching "MacUpdate *"
if uptime > 10 minutes then exec "/Users/Rax/Library/Automation/Shell/monit_macupdate"monit procmatch "MacUpdate *"/Applications/MacUpdate Desktop.app/Contents/MacOS/MacUpdate Desktop但据monit status报道,macupdate“没有受到监控”。
为什么'monit‘不监控我的进程?
发布于 2018-08-28 17:41:36
您的匹配将不适用于monit。
请尝试以下操作:
检查进程"/Users/Rax/Library/Automation/Shell/monit_macupdate“是否与macupdate匹配,如果正常运行时间> 10分钟,则执行MacUpdate
向Salman致敬
https://stackoverflow.com/questions/51068296
复制相似问题