Skip to content

Commit

Permalink
fix: ajoute un restart on-failure pour le service openfisca
Browse files Browse the repository at this point in the history
  • Loading branch information
Shamzic committed Mar 7, 2024
1 parent 41b3af4 commit 7255974
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions roles/bootstrap/templates/openfisca.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Group={{ server_user_group }}
Environment="OPENFISCA_WORKERS={{ item.openfisca_worker_number | default(3) }}" "OPENFISCA_PORT={{ item.openfisca_server_port }}"
WorkingDirectory={{ repository_folder }}/
ExecStart={{ venv_dir }}/bin/gunicorn openfisca.api --config openfisca/config.py
Restart=on-failure
ExecReload=/bin/kill -HUP $MAINPID

[Install]
Expand Down

0 comments on commit 7255974

Please sign in to comment.