Browse Source

Fix unit file after modification (#2395)

* fix service file for rpm packages build
Manuel Sabban 1 year ago
parent
commit
2cb7b0bee6
2 changed files with 3 additions and 3 deletions
  1. 1 1
      debian/crowdsec.service
  2. 2 2
      rpm/SOURCES/crowdsec.unit.patch

+ 1 - 1
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

+ 2 - 2
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