之前习惯用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
最新评论: