Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: Add missing mgmtd into logrotate/rsyslogd #17054

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions redhat/frr.logrotate
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@
endscript
}

/var/log/frr/mgmtd.log {
notifempty
missingok
postrotate
/bin/kill -USR1 `cat /var/run/frr/mgmtd.pid 2> /dev/null` 2> /dev/null || true
endscript
}

/var/log/frr/nhrpd.log {
notifempty
missingok
Expand Down
2 changes: 1 addition & 1 deletion tools/etc/logrotate.d/frr
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# between file and syslog, rsyslogd might still have file
# open, as well as the daemons, so always signal the daemons.
# It's safe, a NOP if (only) syslog is being used.
for i in babeld bgpd eigrpd isisd ldpd nhrpd ospf6d ospfd sharpd \
for i in babeld bgpd eigrpd isisd ldpd mgmtd nhrpd ospf6d ospfd sharpd \
pimd pim6d ripd ripngd zebra pathd pbrd staticd bfdd fabricd vrrpd; do
if [ -e /var/run/frr/$i.pid ] ; then
pids="$pids $(cat /var/run/frr/$i.pid)"
Expand Down
2 changes: 2 additions & 0 deletions tools/etc/rsyslog.d/45-frr.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ if $programname == 'babeld' or
$programname == 'isisd' or
$programname == 'fabricd' or
$programname == 'ldpd' or
$programname == 'mgmtd' or
$programname == 'nhrpd' or
$programname == 'ospf6d' or
$programname == 'ospfd' or
Expand All @@ -33,6 +34,7 @@ if $programname == 'babeld' or
$programname == 'isisd' or
$programname == 'fabricd' or
$programname == 'ldpd' or
$programname == 'mgmtd' or
$programname == 'nhrpd' or
$programname == 'ospf6d' or
$programname == 'ospfd' or
Expand Down
Loading