From 38b37db55b485bfef33d0aee21e06d19a527af61 Mon Sep 17 00:00:00 2001 From: mmetc <92726601+mmetc@users.noreply.github.com> Date: Wed, 28 Dec 2022 10:13:05 +0100 Subject: [PATCH] systemd: same restart options across deb, rpm, wizard (#1948) --- config/crowdsec.service | 2 ++ rpm/SOURCES/crowdsec.unit.patch | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/crowdsec.service b/config/crowdsec.service index 4b6c26fce..0897e1b50 100644 --- a/config/crowdsec.service +++ b/config/crowdsec.service @@ -9,6 +9,8 @@ ExecStartPre=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -t ExecStart=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml #ExecStartPost=/bin/sleep 0.1 ExecReload=/bin/kill -HUP $MAINPID +Restart=always +RestartSec=60 [Install] WantedBy=multi-user.target diff --git a/rpm/SOURCES/crowdsec.unit.patch b/rpm/SOURCES/crowdsec.unit.patch index 0ca489bab..b3c9b35fd 100644 --- a/rpm/SOURCES/crowdsec.unit.patch +++ b/rpm/SOURCES/crowdsec.unit.patch @@ -10,4 +10,4 @@ +ExecStart=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml #ExecStartPost=/bin/sleep 0.1 ExecReload=/bin/kill -HUP $MAINPID - + Restart=always