From 8188bc62aaf09de35c035aed6516c53a39dc5f3e Mon Sep 17 00:00:00 2001 From: galal-hussein Date: Wed, 8 May 2019 02:54:40 +0200 Subject: [PATCH] Add Restart=always to systemd unit --- README.md | 1 + contrib/ansible/roles/k3s/master/templates/k3s.service.j2 | 2 ++ contrib/ansible/roles/k3s/node/templates/k3s.service.j2 | 1 + install.sh | 1 + k3s.service | 1 + 5 files changed, 6 insertions(+) diff --git a/README.md b/README.md index a0afc460e0..ab31709efa 100644 --- a/README.md +++ b/README.md @@ -304,6 +304,7 @@ LimitNPROC=infinity LimitCORE=infinity TasksMax=infinity TimeoutStartSec=0 +Restart=always [Install] WantedBy=multi-user.target diff --git a/contrib/ansible/roles/k3s/master/templates/k3s.service.j2 b/contrib/ansible/roles/k3s/master/templates/k3s.service.j2 index b4d08d1370..32d1a3a880 100644 --- a/contrib/ansible/roles/k3s/master/templates/k3s.service.j2 +++ b/contrib/ansible/roles/k3s/master/templates/k3s.service.j2 @@ -12,5 +12,7 @@ LimitNOFILE=infinity LimitNPROC=infinity LimitCORE=infinity TasksMax=infinity +Restart=always + [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 3c4cc816d8..fffd727044 100644 --- a/contrib/ansible/roles/k3s/node/templates/k3s.service.j2 +++ b/contrib/ansible/roles/k3s/node/templates/k3s.service.j2 @@ -10,5 +10,6 @@ LimitNOFILE=infinity LimitNPROC=infinity LimitCORE=infinity TasksMax=infinity +Restart=always [Install] WantedBy=multi-user.target diff --git a/install.sh b/install.sh index b65fdebb03..24e700487e 100755 --- a/install.sh +++ b/install.sh @@ -490,6 +490,7 @@ LimitNPROC=infinity LimitCORE=infinity TasksMax=infinity TimeoutStartSec=0 +Restart=always [Install] WantedBy=multi-user.target diff --git a/k3s.service b/k3s.service index 8738ee3960..472f87df1d 100644 --- a/k3s.service +++ b/k3s.service @@ -14,6 +14,7 @@ LimitNPROC=infinity LimitCORE=infinity TasksMax=infinity TimeoutStartSec=0 +Restart=always [Install] WantedBy=multi-user.target