summarylogtreecommitdiffstats
path: root/systemd.service
blob: 64d94c5c6fc66e0472050f9d7bf7cd4ef2443608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[Unit]
Description=Prometheus exporter for fail2ban metrics
Requires=network-online.target
After=network-online.target

[Service]
EnvironmentFile=/etc/conf.d/prometheus-fail2ban-exporter
ExecStart=/usr/bin/prometheus-fail2ban-exporter
ExecReload=/bin/kill -HUP $MAINPID
User=root
Group=root
Restart=on-failure
RestartSec=5s

NoNewPrivileges=true

[Install]
WantedBy=multi-user.target