2023-06-05 20:49:25 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Prometheus exporter for fail2ban metrics
|
|
|
|
Requires=network-online.target
|
|
|
|
After=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
2023-06-10 08:28:35 +00:00
|
|
|
EnvironmentFile=/etc/conf.d/prometheus-fail2ban-exporter
|
2023-06-10 08:52:49 +00:00
|
|
|
ExecStart=/usr/bin/prometheus-fail2ban-exporter
|
2023-06-05 20:49:25 +00:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
User=root
|
|
|
|
Group=root
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=5s
|
|
|
|
|
|
|
|
NoNewPrivileges=true
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|