3 ms·
I'm curious, unless i'm missing something the OP could have tried a graceful reload of the gunicorn process? >kill -HUP <pid> EDIT: That probably applies to n
by sidmitra 11y ago
I'm curious, unless i'm missing something the OP could have tried a graceful reload of the gunicorn process?
>kill -HUP <pid>
EDIT: That probably applies to nginx too.
- cuu508 11y agoAh, thanks, good to know! I should try this instead. Would still need to do something extra when supervisor task definition changes (e.g., a new environment variable is added), but that should'n happen nearly as often as python code updates.
- vacri 11y agonginx also has a 'reload' command like apache - service nginx reload. No need to hunt down the pid yourself...
- klibertp 11y agonginx -s reload also works, you don't need service/systemctl at all for this.