From 1985aba3224caa8e80b473c9f20d25d709c3b585 Mon Sep 17 00:00:00 2001 From: Matt Smith Date: Wed, 14 Apr 2021 10:36:12 +0100 Subject: [PATCH] Add `Restart=always` to systemd unit Without this, systemd won't restart the daemon if it is killed by OOM killer. --- roles/wownerod/templates/wownerod.service.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/wownerod/templates/wownerod.service.j2 b/roles/wownerod/templates/wownerod.service.j2 index 4bfe7ae..02f970e 100644 --- a/roles/wownerod/templates/wownerod.service.j2 +++ b/roles/wownerod/templates/wownerod.service.j2 @@ -11,6 +11,7 @@ StateDirectory=wownero LogsDirectory=wownero Type=simple ExecStart={{ wownerod_path }} --config-file /etc/wownerod.conf --non-interactive +Restart=always [Install] WantedBy=multi-user.target