3 Star 6 Fork 4

winlinvip / srs.wiki

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
v3_EN_Reload.md 1.31 KB
一键复制 编辑 原始数据 按行查看 历史
winlinvip 提交于 2022-01-06 11:57 . Update

HOME > EN > Reload

Reload

Almost all features of SRS support reload, donot disconnect all connection and apply the new config.

NotSupportedFeatures

The bellow features can not reload:

  • deamon: whether start as deamon mode.
  • mode: the mode of vhost.

The daemon never support reload.

The mode of vhost, to make the vhost origin or edge, should never directly change the mode, because of:

  • The origin and edge switch is too complex.
  • The origin always put in a device group, never change to edge actually.
  • The upnode or origin restart have no effect to user, edge will retry.

A workaround to modify the mode of vhost:

  • Delete the vhost and reload.
  • Ensure the vhost is deleted, for the reload is async.
  • Add vhost with new mode, then reload.

Use Scenario

The use scenario of reload:

  • Donot restart server to apply new config, only killall -1 srs.
  • Donot disconnect user connections.

Usage

The usage of reload: killall -1 srs

Or send signal to process: kill -1 7635

Or use SRS scripts: /etc/init.d/srs reload

Winlin 2014.11

1
https://gitee.com/winlinvip/srs-wiki.git
git@gitee.com:winlinvip/srs-wiki.git
winlinvip
srs-wiki
srs.wiki
master

搜索帮助