mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
so many errors, systemd still not working -- which uwsgi as root does
This commit is contained in:
parent
a7d55209c2
commit
fdb872dc03
3 changed files with 11 additions and 2 deletions
|
@ -52,12 +52,14 @@
|
|||
systemd:
|
||||
name: uwsgi-captiveportal.service
|
||||
state: restarted
|
||||
enabled: True
|
||||
when: captiveportal_enabled | bool
|
||||
|
||||
- name: Stop uWSGI server if captive portal has been disabled
|
||||
systemd:
|
||||
name: uwsgi-captiveportal.service
|
||||
state: stopped
|
||||
enabled: False
|
||||
when: not captiveportal_enabled | bool
|
||||
|
||||
- name: Run divert to generate diversion lists for nginx
|
||||
|
|
|
@ -25,4 +25,11 @@
|
|||
- { src: "roles/nginx/templates/server.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/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 }}"
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
Description=uWSGI 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
|
||||
RestartSec=5
|
||||
KillSignal=SIGQUIT
|
Loading…
Reference in a new issue