Commit 73f43d87 by Eric Fischer

Update pgrep for 16.04

We've realized that celery workers report their process name differently
on 16.04, so we need to add this additional -a flag to ensure workers
are not killed prematurely.
parent c8436f18
......@@ -56,7 +56,7 @@
# Celery and Supervisord should not be killed because they may have long running tasks that need to finish
- name: kill processes by user
shell: pgrep -u {{ item }} -lf | grep -v celery | grep -v supervisord | grep -v gunicorn | awk '{ print $1}' | xargs -I {} kill {} || true
shell: pgrep -u {{ item }} -laf | grep -v celery | grep -v supervisord | grep -v gunicorn | awk '{ print $1}' | xargs -I {} kill {} || true
with_items:
- www-data
- rabbitmq
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment