3c16139c44
A configuration syntax test is performed every time the service is started from systemd. The resulting error, if any, is shown on journalctl logs. This PR removes the unnecessary output in crowdsec.log generated by the configuration test.
16 lines
426 B
Desktop File
16 lines
426 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
|
|
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=/bin/kill -HUP $MAINPID
|
|
Restart=always
|
|
RestartSec=60
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|