mirror of
https://github.com/KevinMidboe/playbooks-retailor.git
synced 2025-10-29 17:50:35 +00:00
20 lines
484 B
Django/Jinja
20 lines
484 B
Django/Jinja
[Unit]
|
|
Description=Fail2ban metric exporter for Prometheus
|
|
Documentation=https://gitlab.com/hctrdev/fail2ban-prometheus-exporter/-/blob/main/README.md
|
|
Requires=network-online.target
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
ExecStart=/usr/sbin/fail2ban_exporter
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
NoNewPrivileges=true
|
|
|
|
# Currently need to run the exporter as root to ensure it has read/write access to the
|
|
# fail2ban socket file.
|
|
User=root
|
|
Group=root
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|