module_alpine_fail2ban/fail2ban_exporter.initd

16 lines
315 B
Plaintext
Raw Normal View History

2022-12-06 16:23:44 +00:00
#!/sbin/openrc-run
description="fail2ban exporter"
command="/usr/sbin/fail2ban_exporter"
# what to export
# See node_exporter --help
command_args="--collector.f2b.socket=/run/fail2ban/fail2ban.sock"
pidfile="/run/${RC_SVCNAME}.pid"
# node_exporter stay in backgroud
# make a pid for me
command_background=true