summaryrefslogtreecommitdiff
path: root/data/templates/pmacct/override.conf.j2
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-05-01 19:01:30 +0200
committerChristian Poessinger <christian@poessinger.com>2022-05-01 19:01:30 +0200
commite0f1e495b81c8b214a8e12678bf5c643b36567dd (patch)
treeb107daebd1a66e4ffb0db30336c56ed020312d94 /data/templates/pmacct/override.conf.j2
parent5ffbd74baee4c3e987fe1875c2c73a1fe7afdbe1 (diff)
downloadvyos-1x-e0f1e495b81c8b214a8e12678bf5c643b36567dd.tar.gz
vyos-1x-e0f1e495b81c8b214a8e12678bf5c643b36567dd.zip
flow-accounting: T4353: fix Jinja2 linting errors
Diffstat (limited to 'data/templates/pmacct/override.conf.j2')
-rw-r--r--data/templates/pmacct/override.conf.j217
1 files changed, 17 insertions, 0 deletions
diff --git a/data/templates/pmacct/override.conf.j2 b/data/templates/pmacct/override.conf.j2
new file mode 100644
index 000000000..213569ddc
--- /dev/null
+++ b/data/templates/pmacct/override.conf.j2
@@ -0,0 +1,17 @@
+{% set vrf_command = 'ip vrf exec ' ~ vrf ~ ' ' if vrf is vyos_defined else '' %}
+[Unit]
+After=
+After=vyos-router.service
+ConditionPathExists=
+ConditionPathExists=/run/pmacct/uacctd.conf
+
+[Service]
+EnvironmentFile=
+ExecStart=
+ExecStart={{ vrf_command }}/usr/sbin/uacctd -f /run/pmacct/uacctd.conf
+WorkingDirectory=
+WorkingDirectory=/run/pmacct
+PIDFile=
+PIDFile=/run/pmacct/uacctd.pid
+Restart=always
+RestartSec=10