diff --git a/roles/bootstrap/templates/openfisca.service.j2 b/roles/bootstrap/templates/openfisca.service.j2 index b8774d1..0590ae3 100644 --- a/roles/bootstrap/templates/openfisca.service.j2 +++ b/roles/bootstrap/templates/openfisca.service.j2 @@ -5,9 +5,9 @@ Description=Service in charge of OpenFisca Web API for {{ item.name }} User={{ server_user_name }} Group={{ server_user_group }} Environment="OPENFISCA_WORKERS={{ item.openfisca_worker_number | default(3) }}" "OPENFISCA_PORT={{ item.openfisca_server_port }}" -WorkingDirectory={{ repository_folder }}/openfisca -ExecStart={{ venv_dir }}/bin/gunicorn api --config config.py +WorkingDirectory={{ repository_folder }}/ +ExecStart={{ venv_dir }}/bin/gunicorn openfisca.api --config openfisca/config.py ExecReload=/bin/kill -HUP $MAINPID [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target