crowdsec/config/crowdsec.service

18 lines
500 B
SYSTEMD
Raw Permalink Normal View History

2020-05-15 09:39:16 +00:00
[Unit]
Description=Crowdsec agent
2020-05-15 09:39:16 +00:00
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
Type=notify
Environment=LC_ALL=C LANG=C
ExecStartPre=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
ExecStart=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml
#ExecStartPost=/bin/sleep 0.1
ExecReload=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
RestartSec=60
2020-05-15 09:39:16 +00:00
[Install]
WantedBy=multi-user.target