Commit e50f8ebd by Feanil Patel

Don't pkill some services.

Certain services will shutdown gracefully and so they may not be dead by the
time this task is run.  Those services should not be explicitly killed since
they may need to do things like finish a grading run or other instructor tasks.
parent d5a34e9c
......@@ -42,8 +42,9 @@
- name: stop mongodb
service: name=mongodb state=stopped arguments="{{ STOP_ALL_EDX_SERVICES_EXTRA_ARGS }}"
# Celery and Supervisord should not be killed because they may have long running tasks that need to finish
- name: kill processes by user
shell: pkill -u {{ item }} || true
shell: pgrep -u {{ item }} -lf | grep -v celery | grep -v supervisord | grep -v gunicorn | awk '{ print $1}' | xargs -I {} kill {} || true
with_items:
- www-data
- devpi.supervisor
......
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