From a1433c88e66f39f40ceeb65b0d7d02b88aa750c8 Mon Sep 17 00:00:00 2001 From: Martin van Es <martin@mrvanes.com> Date: Wed, 11 May 2022 08:27:51 +0200 Subject: [PATCH] Run signer and proxy in uwsgi server --- roles/mdproxy/templates/mdproxy.service.j2 | 2 +- roles/mdsigner/templates/mdsigner.service.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/mdproxy/templates/mdproxy.service.j2 b/roles/mdproxy/templates/mdproxy.service.j2 index a411e2f..7aca74b 100644 --- a/roles/mdproxy/templates/mdproxy.service.j2 +++ b/roles/mdproxy/templates/mdproxy.service.j2 @@ -5,7 +5,7 @@ After=syslog.target network.target [Service] Type=simple WorkingDirectory={{ altmdx_dir }} -ExecStart={{ altmdx_dir }}/bin/python -u mdproxy.py +ExecStart={{ altmdx_dir }}/bin/uwgi --ini mdproxy.ini ExecReload=/bin/kill -HUP $MAINPID Restart=on-failure RestartSec=10 diff --git a/roles/mdsigner/templates/mdsigner.service.j2 b/roles/mdsigner/templates/mdsigner.service.j2 index b8e8f29..4abf6bc 100644 --- a/roles/mdsigner/templates/mdsigner.service.j2 +++ b/roles/mdsigner/templates/mdsigner.service.j2 @@ -5,7 +5,7 @@ After=syslog.target network.target [Service] Type=simple WorkingDirectory={{ altmdx_dir }} -ExecStart={{ altmdx_dir }}/bin/python -u mdsigner.py +ExecStart={{ altmdx_dir }}/bin/uwsgi --ini mdsigner.ini ExecReload=/bin/kill -HUP $MAINPID Restart=on-failure RestartSec=10 -- GitLab