mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
frr-syslog: T2061: Moving FRR logs to messages: Fix debug mode
This commit is contained in:
parent
0eed76532b
commit
43da31bd19
@ -51,9 +51,23 @@ watchfrr_enable=no
|
||||
valgrind_enable=no
|
||||
"""
|
||||
|
||||
frr_conf = """
|
||||
log syslog
|
||||
log facility local7
|
||||
"""
|
||||
|
||||
frr_log = ''
|
||||
|
||||
with open("/etc/frr/daemons", "w") as f:
|
||||
f.write(daemons)
|
||||
|
||||
with open("/etc/frr/frr.conf", "w") as f:
|
||||
f.write(frr_conf)
|
||||
|
||||
# Prevent writing logs to /var/log/frr/frr.log. T2061
|
||||
with open("/etc/rsyslog.d/45-frr.conf", "w") as f:
|
||||
f.write(frr_log)
|
||||
|
||||
# Create empty daemon configs so that they start properly
|
||||
for name in ["zebra.conf", "bgpd.conf", "ospfd.conf", "ospf6d.conf", "ripd.conf", "ripngd.conf"]:
|
||||
open(os.path.join("/etc/frr", name), 'a').close()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user