Crowdsec 1.8.2 and using override.conf

Using crowdsec 1.8.2-1 and cs-firewall-bouncer 0.0.36-1
Cosmetic problems solved by using overrides:

At (only the) first start (and then daily) there is an error in journalctl:
Failed to start Crowdsec agent.
The crowdsec.service starts successful after automatic retrie(s)
as the crowdse-firewall-bouncer.service does.

I made two overrides to avoid the message(s):
1.

sudo mkdir /etc/systemd/system/crowdsec.service.
sudo mkdir /etc/systemd/system/crowdsec-firewall-bouncer.service.d
  1. sudo systemctl edit crowdsec
    

    My override.conf contains:

    [Unit]
    After=gdm.service systemd-journald.service network.target remote-fs.target nss-lookup.target
    
    [Service]
    Type=notify
    Environment=LC_ALL=C LANG=C
    ExecStartPre=
    ExecStartPre=/usr/bin/sleep 11s
    ExecStartPre=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
    RestartSec=10
    
  2. sudo systemctl edit crowdsec-firewall-bouncer
    

    My override.conf contains:

    [Service]
    RestartSec=20
    
  3. systemctl daemon-reload
    
  4. sudo systemd-analyze verify crowdsec.service
    
  5. sudo systemd-analyze verify crowdsec-firewall.bouncer.service 
    

(success: when no reply)


Mod edit: tidied up a bit. :ok_hand:

1 Like