From dd4d0114032da6fa1b4c5fd62b1ad2ae39c98a8a Mon Sep 17 00:00:00 2001 From: George Hunt Date: Tue, 17 Dec 2019 22:55:12 +0000 Subject: [PATCH] do not put uwsgi ini file in apps-enabled --- roles/captiveportal/tasks/main.yml | 14 +++++++------- .../templates/uwsgi-captiveportal.service | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/roles/captiveportal/tasks/main.yml b/roles/captiveportal/tasks/main.yml index 1a9274dfc..0bc698969 100644 --- a/roles/captiveportal/tasks/main.yml +++ b/roles/captiveportal/tasks/main.yml @@ -39,14 +39,14 @@ - name: Copy uWSGI config file template: src: roles/captiveportal/templates/captiveportal.ini - dest: /etc/uwsgi/apps-available/ + dest: /opt/iiab/captiveportal/ -- name: Enable uwsgi config for captiveportal - file: - src: /etc/uwsgi/apps-available/captiveportal.ini - path: /etc/uwsgi/apps-enabled/captiveportal.ini - state: link - when: captiveportal_enabled | bool +#- name: Enable uwsgi config for captiveportal +# file: +# src: /etc/uwsgi/apps-available/captiveportal.ini +# path: /etc/uwsgi/apps-enabled/captiveportal.ini +# state: link +# when: captiveportal_enabled | bool - name: Copy unit file for uWSGI service template: diff --git a/roles/captiveportal/templates/uwsgi-captiveportal.service b/roles/captiveportal/templates/uwsgi-captiveportal.service index e662c588b..a45ed2ae9 100644 --- a/roles/captiveportal/templates/uwsgi-captiveportal.service +++ b/roles/captiveportal/templates/uwsgi-captiveportal.service @@ -2,7 +2,7 @@ Description=uWSGI Service [Service] -ExecStart=/usr/bin/uwsgi --ini /etc/uwsgi/apps-enabled/captiveportal.ini +ExecStart=/usr/bin/uwsgi --ini /opt/iiab/captiveportal/captiveportal.ini Restart=always RestartSec=5 KillSignal=SIGQUIT