summaryrefslogtreecommitdiff
path: root/src/etc/systemd/system/frr.service.d
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-07-17 21:29:29 +0200
committerChristian Poessinger <christian@poessinger.com>2022-07-17 21:29:29 +0200
commite632ed4b5409f955add4dab100bc7fa556606eb1 (patch)
tree700dd237eb60a8bdf2632bfc10343019b52c0eba /src/etc/systemd/system/frr.service.d
parent3705f9164101156febac2dd1dfd1e62671121602 (diff)
downloadvyos-1x-e632ed4b5409f955add4dab100bc7fa556606eb1.tar.gz
vyos-1x-e632ed4b5409f955add4dab100bc7fa556606eb1.zip
login: T4536: add all accounts to frr group
Diffstat (limited to 'src/etc/systemd/system/frr.service.d')
-rw-r--r--src/etc/systemd/system/frr.service.d/override.conf11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/etc/systemd/system/frr.service.d/override.conf b/src/etc/systemd/system/frr.service.d/override.conf
new file mode 100644
index 000000000..69eb1a86a
--- /dev/null
+++ b/src/etc/systemd/system/frr.service.d/override.conf
@@ -0,0 +1,11 @@
+[Unit]
+Before=
+Before=vyos-router.service
+
+[Service]
+ExecStartPre=/bin/bash -c 'mkdir -p /run/frr/config; \
+ echo "log syslog" > /run/frr/config/frr.conf; \
+ echo "log facility local7" >> /run/frr/config/frr.conf; \
+ chown frr:frr /run/frr/config/frr.conf; \
+ chmod 664 /run/frr/config/frr.conf; \
+ mount --bind /run/frr/config/frr.conf /etc/frr/frr.conf'