我试图让 monit 仅激活 monitrc 脚本一次然后退出。
我试过了
monit-v-Ic /tmp/monitrc
但当我查看输出时它显示:
Runtime constants:
Control file = /tmp/monitrc
Log file = (not defined)
Pid file = /home/hduser/.monit.pid
Id file = /home/hduser/.monit.id
State file = /home/hduser/.monit.state
Debug = True
Log = False
Use syslog = False
Is Daemon = True
不确定是否还有其他开关需要放入,或者 monit 不支持这个?