ansible-fprobe/templates/systemd-fprobe-ulog.service.j2

19 lines
441 B
Plaintext
Raw Permalink Normal View History

2019-01-13 20:10:19 +01:00
{{ ansible_managed | comment }}
2017-01-07 09:55:05 +01:00
[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