init: restart celery workers on 'reload' (fixes #2904)
Sending HUP to the parent of a family of celery workers causes the parent to re-exec itself, spawning a new set of child workers without terminating the old ones. So instead we send TERM to the parent on 'reload', which cleans up the children, and rely on systemd/upstart to respawn the whole family.
This commit is contained in:
parent
e16310062b
commit
7554b0c105
4 changed files with 4 additions and 2 deletions
|
|
@ -7,6 +7,7 @@ start on runlevel [2345]
|
|||
stop on runlevel [!2345]
|
||||
|
||||
respawn
|
||||
reload signal TERM
|
||||
|
||||
env VENV=/srv/pandora
|
||||
env USER=pandora
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ start on runlevel [2345]
|
|||
stop on runlevel [!2345]
|
||||
|
||||
respawn
|
||||
reload signal TERM
|
||||
|
||||
env VENV=/srv/pandora
|
||||
env USER=pandora
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue