From d58301428612941789001eb1427584ca4cc57e5c Mon Sep 17 00:00:00 2001 From: L3D Date: Tue, 24 Jan 2023 22:12:26 +0100 Subject: [PATCH] Add Restart=always to systemd unit --- templates/etebase.service.j2 | 1 + vars/main.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/etebase.service.j2 b/templates/etebase.service.j2 index 5e1b975..9459b7f 100644 --- a/templates/etebase.service.j2 +++ b/templates/etebase.service.j2 @@ -6,6 +6,7 @@ Description=Execute the etebase server. [Service] WorkingDirectory={{ etebase__user_home }}/etebase_{{ etebase_version_target }} ExecStart={{ etebase__venv }}/bin/uvicorn etebase_server.asgi:application --uds {{ etebase__socket }} +Restart=always [Install] WantedBy=multi-user.target diff --git a/vars/main.yml b/vars/main.yml index 40c1cac..cd4a366 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -4,5 +4,5 @@ etebase__repo_api: 'https://api.github.com/repos/etesync/server/tags' etebase__venv: "{{ etebase__venv_path }}/{{ etebase_version_target }}" # versionscheck -playbook_version_number: 13 # should be a integer +playbook_version_number: 14 # should be a integer playbook_version_path: 'role-do1jlr.etebase'