【发布时间】:2019-04-04 14:38:17
【问题描述】:
我有一个脚本需要 Monit 保持活跃。如何将我的环境变量传递给这个脚本?比如:
check host steve with address localhost
group nn
ENV = "DBHOST=localhost" #this doesn't work...
start program = "/home/steve.sh start"
start program = "/home/steve.sh restart"
if failed port 80 protocol http for 2 cycles then restart
【问题讨论】:
标签: monit