2022-02-20 10:05:38 +01:00
|
|
|
[Unit]
|
2023-10-27 08:23:20 +02:00
|
|
|
Description=Fail2ban metric exporter for Prometheus
|
|
|
|
Documentation=https://gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/-/blob/main/README.md
|
|
|
|
Requires=network-online.target
|
|
|
|
After=network-online.target
|
2022-02-20 10:05:38 +01:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecStart=/usr/sbin/fail2ban_exporter
|
2023-10-27 08:23:20 +02:00
|
|
|
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
|
2022-02-20 10:05:38 +01:00
|
|
|
|
|
|
|
[Install]
|
2023-10-27 08:23:20 +02:00
|
|
|
WantedBy=multi-user.target
|