From 2cb7b0bee65110a21088eab2f0711a8c4acaa145 Mon Sep 17 00:00:00 2001 From: Manuel Sabban Date: Mon, 31 Jul 2023 16:57:23 +0200 Subject: [PATCH] Fix unit file after modification (#2395) * fix service file for rpm packages build --- debian/crowdsec.service | 2 +- rpm/SOURCES/crowdsec.unit.patch | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/crowdsec.service b/debian/crowdsec.service index 8743a03bc..b65558f70 100644 --- a/debian/crowdsec.service +++ b/debian/crowdsec.service @@ -5,7 +5,7 @@ After=syslog.target network.target remote-fs.target nss-lookup.target [Service] Type=notify Environment=LC_ALL=C LANG=C -ExecStartPre=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml -t +ExecStartPre=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error ExecStart=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml #ExecStartPost=/bin/sleep 0.1 ExecReload=/bin/kill -HUP $MAINPID diff --git a/rpm/SOURCES/crowdsec.unit.patch b/rpm/SOURCES/crowdsec.unit.patch index b3c9b35fd..af9fe5c31 100644 --- a/rpm/SOURCES/crowdsec.unit.patch +++ b/rpm/SOURCES/crowdsec.unit.patch @@ -4,9 +4,9 @@ [Service] Type=notify Environment=LC_ALL=C LANG=C --ExecStartPre=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -t +-ExecStartPre=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error -ExecStart=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -+ExecStartPre=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml -t ++ExecStartPre=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error +ExecStart=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml #ExecStartPost=/bin/sleep 0.1 ExecReload=/bin/kill -HUP $MAINPID