宝塔面板定期重启SuperVisord进程守护管理器里的守护进程

找到supervisorctl的安装路径

sudo find / -name supervisorctl

#正常会输出
/www/server/panel/pyenv/bin/supervisorctl

看一下当前运行的任务

/www/server/panel/pyenv/bin/supervisorctl status

#例如会输出
chat_api:chat_api_00             RUNNING   pid 3930894, uptime 0:53:21

编辑定时任务

Pasted image 20250311161815

定时任务脚本内容:

/www/server/panel/pyenv/bin/supervisorctl restart chat_api:chat_api_00

测试运行

Pasted image 20250311161936