您好尝试在Amazon Linux上学习和实现主管。我正在尝试监视服务并在该服务未运行时执行命令。
像pidof httpd >/dev/null 2>&1 || python /usr/local/bin/sumopdalert.py
Supervisord Conf看起来像这样
program:sumocollector]
command=pidof httpd >/dev/null 2>&1 || python /usr/local/bin/sumopdalert.py
状态:
supervisord (pid 8632) is running...
sumocollector BACKOFF Exited too quickly (process log may have details)
主管可以像cron这样运行该命令吗?