ansible-fprobe/templates/systemd-fprobe-ulog.service.j2
2019-01-13 19:10:19 +00:00

19 lines
441 B
Django/Jinja

{{ ansible_managed | comment }}
[Unit]
Description=fprobe netflow collector
Requires=network.target
[Service]
Type=simple
{% if ansible_os_family == 'RedHat' %}
ExecStart=/usr/bin/fprobe-ulog -c /var/tmp {{ fprobe_flow_collector }} -l 3
{% else %}
ExecStart=/usr/sbin/fprobe -i{{ fprobe_if }} {{ fprobe_args }} {{ fprobe_flow_collector }} -l 3
{% endif %}
TimeoutSec=30
RestartSec=15s
Restart=always
[Install]
WantedBy=multi-user.target