summaryrefslogtreecommitdiff
path: root/data/templates/sflow/override.conf.j2
blob: 73588fdb236aaf6de4a02976601f660ca65c5e20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{% set vrf_command = 'ip vrf exec ' ~ vrf ~ ' ' if vrf is vyos_defined else '' %}
[Unit]
After=
After=vyos-router.service
ConditionPathExists=
ConditionPathExists=/run/sflow/hsflowd.conf

[Service]
EnvironmentFile=
ExecStart=
ExecStart={{ vrf_command }}/usr/sbin/hsflowd -m %m -d -f /run/sflow/hsflowd.conf
WorkingDirectory=
WorkingDirectory=/run/sflow
PIDFile=
PIDFile=/run/sflow/hsflowd.pid
Restart=always
RestartSec=10