Deprecated: Optional parameter $keys declared before required parameter $cms_id is implicitly treated as a required parameter in /home/www/dev/work/class/blog/CmsKey.php on line 75

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\main::$outlink is deprecated in /home/www/dev/work/website/lvesu/template/blog/cms/cms.tpl on line 2

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\main::$status is deprecated in /home/www/dev/work/website/lvesu/template/blog/index.head.php on line 2
supervisor 重载修改、新添加的配置文件 - 互联网笔记

略微加速

略速 - 互联网笔记

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

2021-03-24 leiting (3929阅读)

标签 运维

之前习惯用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