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

博客介绍了Supervisord相关命令的使用。reload命令会直接重启supervisord进程,重启所有程序;若只改动某个配置文件,可用update命令重载并重启;新添加配置文件时,update命令无效,需先用reread重新读取配置文件,再用update重启。
3021

被折叠的 条评论
为什么被折叠?



