略微加速

略速 - 互联网笔记

supervisor 重载修改、新添加的配置文件

2021-03-24 leiting (2705阅读)

标签 运维

之前习惯用reload 命令,这直接重启supervisord进程,相当于重启了所有supervisor程序。


但是有时候只改动了某个配置文件,只想重载这个配置文件然后重启,不影响其他配置文件。可以用update命令

supervisorctl update

如果新添加了一个配置文件,此时update命令没用了,要用reread命令,重新读取配置文件。然后再update重启

supervisorctl reread


reload

Restarts the remote supervisord


reread

Reload the daemon’s configuration files, without add/remove (no restarts)


update

Reload config and add/remove as necessary, and will restart affected programs


update all

Reload config and add/remove as necessary, and will restart affected programs


北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3