2021-03-24 17:16:17 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Crowdsec agent
|
|
|
|
After=syslog.target network.target remote-fs.target nss-lookup.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=notify
|
|
|
|
Environment=LC_ALL=C LANG=C
|
|
|
|
PIDFile=/var/run/crowdsec.pid
|
2021-03-26 09:18:13 +00:00
|
|
|
ExecStartPre=crowdsec -c /etc/crowdsec/config.yaml -t
|
|
|
|
ExecStart=crowdsec -c /etc/crowdsec/config.yaml -no-api
|
2021-03-24 17:16:17 +00:00
|
|
|
#ExecStartPost=/bin/sleep 0.1
|
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|