2023-07-07 11:30:16 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Prometheus exporter for fail2ban metrics
|
|
|
|
Requires=network-online.target
|
|
|
|
After=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
2023-07-07 12:04:07 +00:00
|
|
|
EnvironmentFile=/etc/conf.d/EXECUTABLE
|
|
|
|
ExecStart=/usr/bin/EXECUTABLE
|
2023-07-07 11:30:16 +00:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=5s
|
|
|
|
|
|
|
|
NoNewPrivileges=true
|
|
|
|
|
|
|
|
# NOTE: Would be great to create and use a dedicated user/group via
|
|
|
|
# sysusers.conf to access the fail2ban socket, but currently it is no possible
|
|
|
|
# without manual configuration of the fail2ban daemon.
|
|
|
|
User=root
|
|
|
|
Group=root
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|