From f061505895dfb5df00c6010cc53921bafabe812b Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Wed, 25 Jan 2017 16:36:26 -0500 Subject: [PATCH] move the uwsgi master FIFO from /tmp/awxfifo to /var/lib/awx/awxfifo Resolves #4900 --- Makefile | 2 +- awx/main/tasks.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 28668066f9..ecc8ecbad9 100644 --- a/Makefile +++ b/Makefile @@ -402,7 +402,7 @@ uwsgi: collectstatic @if [ "$(VENV_BASE)" ]; then \ . $(VENV_BASE)/tower/bin/activate; \ fi; \ - uwsgi -b 32768 --socket :8050 --module=awx.wsgi:application --home=/venv/tower --chdir=/tower_devel/ --vacuum --processes=5 --harakiri=120 --master --no-orphans --py-autoreload 1 --max-requests=1000 --stats /tmp/stats.socket --master-fifo=/tmp/awxfifo --lazy-apps + uwsgi -b 32768 --socket :8050 --module=awx.wsgi:application --home=/venv/tower --chdir=/tower_devel/ --vacuum --processes=5 --harakiri=120 --master --no-orphans --py-autoreload 1 --max-requests=1000 --stats /tmp/stats.socket --master-fifo=/var/lib/awx/awxfifo --lazy-apps daphne: @if [ "$(VENV_BASE)" ]; then \ diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 4614e45140..d59b3b246b 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -112,7 +112,7 @@ def _uwsgi_reload(): # http://uwsgi-docs.readthedocs.io/en/latest/MasterFIFO.html#available-commands logger.warn('Initiating uWSGI chain reload of server') TRIGGER_CHAIN_RELOAD = 'c' - with open('/tmp/awxfifo', 'w') as awxfifo: + with open('/var/lib/awx/awxfifo', 'w') as awxfifo: awxfifo.write(TRIGGER_CHAIN_RELOAD)