76e97303a5
* Deprecate pid_file config Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com> * Fix unit test Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com> * Impl review suggestions. Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
16 lines
407 B
Desktop File
16 lines
407 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/bin/crowdsec -c /etc/crowdsec/config.yaml -t
|
|
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
|