2021-08-18 11:57:06 +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
|
2023-07-31 14:57:23 +00:00
|
|
|
ExecStartPre=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
|
2021-08-18 11:57:06 +00:00
|
|
|
ExecStart=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml
|
|
|
|
#ExecStartPost=/bin/sleep 0.1
|
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
Restart=always
|
|
|
|
RestartSec=60
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|