如果运行时间过长,我就会监视一个进程并杀死它。 但是,我不希望此过程自动重新启动。 我没有指定start program ,但是每个循环,monitlogging它不能重新启动进程。 有没有办法告诉monit不要尝试重新启动进程和/或从日志中抑制它?
start program
check process libreoffice matching soffice.bin if uptime > 2 then exec "/usr/bin/killall --older-than 2m soffice.bin"