From ddd266fd4cc29f5e62658d713c29528399cc407c Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Wed, 24 May 2023 13:57:56 +0100 Subject: [PATCH] Restart systemd services on failure This should make services more resilient to ephemeral failures. Change-Id: I9ddf024688fff4297f50d99511798a5d371cbffc --- .../roles/bifrost-ironic-install/templates/systemd_template.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/playbooks/roles/bifrost-ironic-install/templates/systemd_template.j2 b/playbooks/roles/bifrost-ironic-install/templates/systemd_template.j2 index 79339c0db..8985e288d 100644 --- a/playbooks/roles/bifrost-ironic-install/templates/systemd_template.j2 +++ b/playbooks/roles/bifrost-ironic-install/templates/systemd_template.j2 @@ -8,6 +8,7 @@ User=ironic RuntimeDirectory=ironic RuntimeDirectoryMode=750 RuntimeDirectoryPreserve=yes +Restart=on-failure [Install] WantedBy=multi-user.target