merge: update-example-systemd-file
* Merge branch 'update-example-systemd-file' into 'main' * See merge request hectorjsmith/fail2ban-prometheus-exporter!115 * Merged by: Hector <hector@hjs.dev>
This commit is contained in:
commit
74265fda0e
1 changed files with 13 additions and 3 deletions
|
@ -1,9 +1,19 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Fail2Ban Exporter
|
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
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=fail2ban_exporter
|
|
||||||
ExecStart=/usr/sbin/fail2ban_exporter
|
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]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in a new issue