]> git.proxmox.com Git - mirror_frr.git/commit
Switch to using syslog for logging as the default
authorDave Olson <olson@cumulusnetworks.com>
Fri, 28 Jul 2017 04:01:18 +0000 (21:01 -0700)
committerDave Olson <olson@cumulusnetworks.com>
Mon, 31 Jul 2017 19:53:01 +0000 (12:53 -0700)
commita7c9d77a08bcf6f3a9529bcf98f7d7cf758a0764
treeb9856f3494f861cd3e354a3d78877d2ac920d497
parent84d5286a9f0e66a6f8264a33818ec173db5ceee7
Switch to using syslog for logging as the default

Switch to using syslog as the default logging mechanism, rather than
the log file mechanism.

Send SIGHUP to syslog (any process with syslog in the name) if they have
files open in /var/log/frr/* (for debian, using lsof).  For redhat, add
sending HUP to any of the pids in /var/run/*syslog*pid, for /var/log/frr/frr.log

Updated logrotate.d/frr to handle all the new daemons for debian; redhat
already had them.

Continue to send SIGUSR1 to all running frr daemons even when syslog is
in use, in case logging has been switched from file to syslog or vice versa.
For debian, accumulate all the PIDs and use a single kill command.

Add /etc/rsyslogd.d/45-frr.conf to have all frr daemons (and tag
frr) logs go to /var/log/frr/frr.log.  If other syslog daemons are
used, logs will go to default log file.

Signed-off-by: Dave Olson <olson@cumulusnetworks.com>
debian/frr.logrotate
redhat/frr.logrotate
tools/etc/frr/frr.conf
tools/etc/rsyslog.d/45-frr.conf [new file with mode: 0644]