summaryrefslogtreecommitdiff
path: root/data/templates/rsyslog/override.conf.j2
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-05-09 19:24:55 +0200
committerGitHub <noreply@github.com>2023-05-09 19:24:55 +0200
commit73ec6fd55d1881e9ca0439a993e9bda8e06d1448 (patch)
tree257f198d0ece25c420e0841cc5a4cd3135b0d85d /data/templates/rsyslog/override.conf.j2
parent3543aecf8463d5d6328ac669c12c482ed4e1ccba (diff)
parent46d2bcdb0b500b4d1b9d973ab5b9ca3c6cf44e51 (diff)
downloadvyos-1x-73ec6fd55d1881e9ca0439a993e9bda8e06d1448.tar.gz
vyos-1x-73ec6fd55d1881e9ca0439a993e9bda8e06d1448.zip
Merge pull request #1985 from c-po/t2778-syslog
syslog: T2778: T2769: refactoring and VRF support
Diffstat (limited to 'data/templates/rsyslog/override.conf.j2')
-rw-r--r--data/templates/rsyslog/override.conf.j211
1 files changed, 11 insertions, 0 deletions
diff --git a/data/templates/rsyslog/override.conf.j2 b/data/templates/rsyslog/override.conf.j2
new file mode 100644
index 000000000..5f6a87edf
--- /dev/null
+++ b/data/templates/rsyslog/override.conf.j2
@@ -0,0 +1,11 @@
+{% set vrf_command = 'ip vrf exec ' ~ vrf ~ ' ' if vrf is vyos_defined else '' %}
+[Unit]
+StartLimitIntervalSec=0
+
+[Service]
+ExecStart=
+ExecStart={{ vrf_command }}/usr/sbin/rsyslogd -n -iNONE
+Restart=always
+RestartPreventExitStatus=
+RestartSec=10
+RuntimeDirectoryPreserve=yes