From 612b2c159695ff1ee2364b2366ed7f4f267456dd Mon Sep 17 00:00:00 2001 From: Chris Jowett Date: Fri, 26 Jul 2019 13:05:54 -0500 Subject: [PATCH] Add RestartSec to ansible systemd unit files --- contrib/ansible/roles/k3s/master/templates/k3s.service.j2 | 1 + contrib/ansible/roles/k3s/node/templates/k3s.service.j2 | 2 ++ 2 files changed, 3 insertions(+) diff --git a/contrib/ansible/roles/k3s/master/templates/k3s.service.j2 b/contrib/ansible/roles/k3s/master/templates/k3s.service.j2 index 32d1a3a880..d8b9c18c14 100644 --- a/contrib/ansible/roles/k3s/master/templates/k3s.service.j2 +++ b/contrib/ansible/roles/k3s/master/templates/k3s.service.j2 @@ -13,6 +13,7 @@ LimitNPROC=infinity LimitCORE=infinity TasksMax=infinity Restart=always +RestartSec=5s [Install] WantedBy=multi-user.target diff --git a/contrib/ansible/roles/k3s/node/templates/k3s.service.j2 b/contrib/ansible/roles/k3s/node/templates/k3s.service.j2 index fffd727044..d66d4722fd 100644 --- a/contrib/ansible/roles/k3s/node/templates/k3s.service.j2 +++ b/contrib/ansible/roles/k3s/node/templates/k3s.service.j2 @@ -11,5 +11,7 @@ LimitNPROC=infinity LimitCORE=infinity TasksMax=infinity Restart=always +RestartSec=5s + [Install] WantedBy=multi-user.target