diff --git a/roles/mdproxy/templates/mdproxy.service.j2 b/roles/mdproxy/templates/mdproxy.service.j2 index a411e2fd64d6c30a3a8090165f5925ef9ffea784..7aca74bd53909b8616c0b7ed49999206f59e284d 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 b8e8f29c270011d11e0b7da1b56b17076fb653bf..4abf6bc6a0cf156ee7237de69c5f66e59a7446ab 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