What is the difference supervisorctl reread and update?

Hello. Please explain what is the difference these commands?
I updated the code of the worker (added a few functions), I still need to do a restart (I haven't updated the config)? In what cases can I use them? Read, but still can't figure out. Thank you.
July 2nd 19 at 17:03
1 answer
July 2nd 19 at 17:05

supervisorctl reread

This command only updates the changes. It does not restart any of the managed applications, even if their configuration has changed. New application configurations cannot be started, neither. (See the “update” command below)

supervisorctl update

Restarts the applications whose configuration has changed.
Note: After the update command, new application configurations becomes available to start, but do not start automatically until the supervisor service restarts or system reboots (even if the autostart option is not disabled). In order to start new application, e.g app2, simply use the following command:
supervisorctl start app2


Well rasgue.)

Changed code workarou - restart.
Changed the configuration (number of processes, logs, etc.) - reread (gives the supervisor the info, that config has changed) + update (restart only those worker for which the configuration changed) .

If you have questions - please write back.
Believe me, I read it. Specific examples can you explain? - misael commented on July 2nd 19 at 17:08
thank you! Now I understand :) - misael commented on July 2nd 19 at 17:11

Find more questions by tags SupervisorLinux