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