summaryrefslogtreecommitdiff
path: root/data/templates/syslog/override.conf.tmpl
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-05-12 06:07:07 +0300
committerGitHub <noreply@github.com>2023-05-12 06:07:07 +0300
commit0b85c416525eae06974763043bab4b0ec706c445 (patch)
tree8558263dede522d542d65eceddd088d9b1fd87ae /data/templates/syslog/override.conf.tmpl
parent7ccd7b4ab990c5501069af7af5d6929abf5b4f11 (diff)
parentbdc9e293a9acb6265b7c0f75a965da801e797574 (diff)
downloadvyos-1x-345f969b9d9eba9cfadc57909d1862944fee4b32.tar.gz
vyos-1x-345f969b9d9eba9cfadc57909d1862944fee4b32.zip
Merge pull request #2001 from c-po/t2769-syslog-vrf-backport1.3.3
syslog: T2769: add VRF support (backport)
Diffstat (limited to 'data/templates/syslog/override.conf.tmpl')
-rw-r--r--data/templates/syslog/override.conf.tmpl11
1 files changed, 11 insertions, 0 deletions
diff --git a/data/templates/syslog/override.conf.tmpl b/data/templates/syslog/override.conf.tmpl
new file mode 100644
index 000000000..60c397fa7
--- /dev/null
+++ b/data/templates/syslog/override.conf.tmpl
@@ -0,0 +1,11 @@
+{% set vrf_command = 'ip vrf exec ' + vrf + ' ' if vrf is defined else '' %}
+[Unit]
+StartLimitIntervalSec=0
+
+[Service]
+ExecStart=
+ExecStart={{ vrf_command }}/usr/sbin/rsyslogd -n -iNONE
+Restart=always
+RestartPreventExitStatus=
+RestartSec=10
+RuntimeDirectoryPreserve=yes