首页 > 技术文章 > 记录一下守护进程的管理命令

kevin-Y 2018-12-28 16:39 原文

supervisorctl 命令介绍

# 停止某一个进程,MyPriceApi修改为你自己里的 [program:x] 里的 x
supervisorctl stop MyPriceApi
# 启动某个进程
supervisorctl start MyPriceApi
# 重启某个进程
supervisorctl restart MyPriceApi
# 结束所有属于名为 groupworker 这个分组的进程 (start,restart 同理)
supervisorctl stop groupworker:
# 结束 groupworker:name1 这个进程 (start,restart 同理)
supervisorctl stop groupworker:name1
# 停止全部进程,注:start、restart、stop 都不会载入最新的配置文件
supervisorctl stop all
# 载入最新的配置文件,停止原有进程并按新的配置启动、管理所有进程
supervisorctl reload
# 根据最新的配置文件,启动新配置或有改动的进程,配置没有改动的进程不会受影响而重启
supervisorctl update

推荐阅读