crowdsec.service 390 B

123456789101112131415
  1. [Unit]
  2. Description=Crowdsec agent
  3. After=syslog.target network.target remote-fs.target nss-lookup.target
  4. [Service]
  5. Type=notify
  6. Environment=LC_ALL=C LANG=C
  7. PIDFile=/var/run/crowdsec.pid
  8. ExecStartPre=crowdsec -c /etc/crowdsec/config.yaml -t
  9. ExecStart=crowdsec -c /etc/crowdsec/config.yaml
  10. #ExecStartPost=/bin/sleep 0.1
  11. ExecReload=/bin/kill -HUP $MAINPID
  12. [Install]
  13. WantedBy=multi-user.target