美文网首页
supervisor配置生效之update/reread

supervisor配置生效之update/reread

作者: 凯文不上班 | 来源:发表于2019-06-11 11:04 被阅读0次

添加新服务配置文件启动服务基本流程

  • 在/etc/supervisor/conf.d/目录添加服务的配置文件 xxx.conf
  • supervisorctl reread (读取新添加的配置让supervisor服务知道)
  • supervisorctl update (新添加的配置正式在supervisor中生效)
  • supervisorctl start xxx

修改已有服务配置文件并生效基本流程

  • 编辑/etc/supervisor/conf.d/xxx.conf并保存修改
  • supervisorctl reread (读取新添加的配置让supervisor服务知道)
  • supervisorctl update (新添加的配置正式在supervisor中生效)
  • supervisorctl restart xxx

更多详细说明参考:http://www.onurguzel.com/supervisord-restarting-and-reloading/

相关文章

网友评论

      本文标题:supervisor配置生效之update/reread

      本文链接:https://www.haomeiwen.com/subject/svuffctx.html