Merge pull request #6642 from donaldsharp/forgotten_daemons

Forgotten daemons
This commit is contained in:
Donatas Abraitis 2020-06-25 18:48:11 +03:00 committed by GitHub
commit f573ae4ced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 1 deletions

View File

@ -16,7 +16,7 @@
# between file and syslog, rsyslogd might still have file # between file and syslog, rsyslogd might still have file
# open, as well as the daemons, so always signal the daemons. # open, as well as the daemons, so always signal the daemons.
# It's safe, a NOP if (only) syslog is being used. # It's safe, a NOP if (only) syslog is being used.
for i in babeld bgpd eigrpd isisd ldpd nhrpd ospf6d ospfd \ for i in babeld bgpd eigrpd isisd ldpd nhrpd ospf6d ospfd sharpd \
pimd ripd ripngd zebra pbrd staticd bfdd fabricd vrrpd; do pimd ripd ripngd zebra pbrd staticd bfdd fabricd vrrpd; do
if [ -e /var/run/frr/$i.pid ] ; then if [ -e /var/run/frr/$i.pid ] ; then
pids="$pids $(cat /var/run/frr/$i.pid)" pids="$pids $(cat /var/run/frr/$i.pid)"

View File

@ -14,6 +14,14 @@
endscript endscript
} }
/var/log/frr/babeld.log {
notifempty
missingok
postrotate
/bin/kill -USR1 `cat /var/run/frr/babeld.pid 2> /dev/null` 2> /dev/null || true
endscript
}
/var/log/frr/bgpd.log { /var/log/frr/bgpd.log {
notifempty notifempty
missingok missingok
@ -101,3 +109,44 @@
/bin/kill -USR1 `cat /var/run/frr/fabricd.pid 2> /dev/null` 2> /dev/null || true /bin/kill -USR1 `cat /var/run/frr/fabricd.pid 2> /dev/null` 2> /dev/null || true
endscript endscript
} }
/var/log/frr/pbrd.log {
notifempty
missingok
postrotate
/bin/kill -USR1 `cat /var/run/frr/pbrd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
/var/log/frr/pimd.log {
notifempty
missingok
postrotate
/bin/kill -USR1 `cat /var/run/frr/pimd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
/var/log/frr/sharpd.log {
notifempty
missingok
postrotate
/bin/kill -USR1 `cat /var/run/frr/sharpd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
/var/log/frr/staticd.log {
notifempty
missingok
postrotate
/bin/kill -USR1 `cat /var/run/frr/static.pid 2> /dev/null` 2> /dev/null || true
endscript
}
/var/log/frr/vrrpd.log {
notifempty
missingok
postrotate
/bin/kill -USR1 `cat /var/run/frr/vrrpd.pid 2> /dev/null` 2> /dev/null || true
endscript
}