1
0
Fork 0
ansible_role_prometheus_pin.../templates/ping_exporter.service.j2
2022-11-23 18:18:12 +01:00

16 lines
491 B
Django/Jinja

{{ ansible_managed | comment }}
[Unit]
Description=Execute the ping_exporter server.
[Service]
Type=simple
WorkingDirectory={{ ping_exporter__user_home }}
User={{ ping_exporter__user }}
Group={{ ping_exporter__group }}
ExecStart=/usr/bin/ping_exporter --config.path {{ ping_exporter__user_home }}/ping_exporter_config.yml --web.listen-address="{{ ping_exporter__web_listen_address }}"
CapabilityBoundingSet=CAP_NET_RAW
AmbientCapabilities=CAP_NET_RAW
[Install]
WantedBy=multi-user.target