crowdsec/config/crowdsec.service
AlteredCoder 1c005d6923
fix systemctl env (#535)
Co-authored-by: AlteredCoder <AlteredCoder>
2020-12-14 17:44:24 +01:00

15 lines
420 B
Desktop File

[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
ExecStartPre=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -t
ExecStart=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml
#ExecStartPost=/bin/sleep 0.1
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target