ansible-role-solr/templates/solr_prometheus_exporter.up...

13 lines
320 B
Django/Jinja

description "Solr exporter for Prometheus"
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [016]
respawn
respawn limit 10 5
setuid {{ solr_user }}
setgid {{ solr_group }}
script
exec {{ solr_prometheus_bindir }}/{{ solr_prometheus_command }} {{ solr_prometheus_command_params }}
end script