gpt4 book ai didi

php - 如果作业停止运行,让 Upstart 向我发送电子邮件通知的最佳方法是什么?

转载 作者:IT王子 更新时间:2023-10-29 01:14:24 24 4
gpt4 key购买 nike

<分区>

这是我正在运行的作业示例。我希望在它退出时收到通知,因为它保持运行很重要。

(我知道 php 不是最好的工具,但它是别人的代码,所以,无论如何)

/etc/init/watchdog.conf

# Events
start on startup
stop on shutdown

# Automatically respawn
respawn
respawn limit 20 5

# Run the script!
script
exec $PHP_PATH/php -f $WD_PATH/index.php wd_run
end script

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com