From bdc9e293a9acb6265b7c0f75a965da801e797574 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Mon, 8 May 2023 22:34:22 +0200 Subject: syslog: T2769: add VRF support Allow syslog messages to be sent through a VRF (e.g. management). (cherry picked from commit 46d2bcdb0b500b4d1b9d973ab5b9ca3c6cf44e51) --- data/templates/syslog/override.conf.tmpl | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 data/templates/syslog/override.conf.tmpl (limited to 'data/templates/syslog/override.conf.tmpl') 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 -- cgit v1.2.3