From 2fdcc6acf4df696c9a9a946b55dfb6306b22822d Mon Sep 17 00:00:00 2001 From: Grant Schofield Date: Fri, 25 Oct 2019 11:37:34 -0700 Subject: [PATCH] add restart always and limit to restart to systemd --- templates/humio@.service.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/humio@.service.j2 b/templates/humio@.service.j2 index 736e8e3..84b6993 100644 --- a/templates/humio@.service.j2 +++ b/templates/humio@.service.j2 @@ -1,6 +1,8 @@ [Unit] Description=Humio service After=network.service + StartLimitInterval=120 + StartLimitBurst=3 [Service] Type=notify @@ -9,6 +11,8 @@ Group=humio LimitNOFILE=250000:250000 TimeoutStopSec=300 + TimeoutSec=900 + Restart=always EnvironmentFile=/etc/humio/server_%i.conf EnvironmentFile=/etc/humio/server_all.conf EnvironmentFile=/etc/humio/server_user_%i.conf