1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

so many errors, systemd still not working -- which uwsgi as root does

This commit is contained in:
George Hunt 2019-12-05 20:54:00 +00:00
parent f699f206b5
commit 3bdcf43142
3 changed files with 11 additions and 2 deletions

View file

@ -52,12 +52,14 @@
systemd: systemd:
name: uwsgi-captiveportal.service name: uwsgi-captiveportal.service
state: restarted state: restarted
enabled: True
when: captiveportal_enabled | bool when: captiveportal_enabled | bool
- name: Stop uWSGI server if captive portal has been disabled - name: Stop uWSGI server if captive portal has been disabled
systemd: systemd:
name: uwsgi-captiveportal.service name: uwsgi-captiveportal.service
state: stopped state: stopped
enabled: False
when: not captiveportal_enabled | bool when: not captiveportal_enabled | bool
- name: Run divert to generate diversion lists for nginx - name: Run divert to generate diversion lists for nginx

View file

@ -25,4 +25,11 @@
- { src: "roles/nginx/templates/server.conf", dest: "/etc/nginx/" } - { src: "roles/nginx/templates/server.conf", dest: "/etc/nginx/" }
- { src: "roles/nginx/templates/nginx.conf", dest: "/etc/nginx/" } - { src: "roles/nginx/templates/nginx.conf", dest: "/etc/nginx/" }
- { src: 'roles/nginx/templates/ports.conf', dest: '/etc/{{ apache_service }}/' , mode: '0644' } - { src: 'roles/nginx/templates/ports.conf', dest: '/etc/{{ apache_service }}/' , mode: '0644' }
- { src: 'roles/nginx/templates/uwsgi.unit', dest: '/etc/systemd/system/' , mode: '0644' } - { src: 'roles/nginx/templates/uwsgi.service', dest: '/etc/systemd/system/' , mode: '0644' }
- name: Let uwsgi running as {{ apache_user }} write log files
file:
path: /var/log/uwsgi/app
state: directory
owner: "{{ apache_user }}"

View file

@ -2,7 +2,7 @@
Description=uWSGI Service Description=uWSGI Service
[Service] [Service]
ExecStart=/usr/local/bin/uwsgi --ini /etc/uwsgi/admin_console_wsgi.ini ExecStart=/usr/local/bin/uwsgi --ini /etc/uwsgi/apps-enabled/admin-console.ini
Restart=always Restart=always
RestartSec=5 RestartSec=5
KillSignal=SIGQUIT KillSignal=SIGQUIT