10 pid=$(lsof -t -a -c /syslog/ /var/log/frr/* 2>/dev/null)
15 # in case using file logging; if switching back and forth
16 # between file and syslog, rsyslogd might still have file
17 # open, as well as the daemons, so always signal the daemons.
18 # It's safe, a NOP if (only) syslog is being used.
19 for i in babeld bgpd eigrpd isisd ldpd nhrpd ospf6d ospfd sharpd \
20 pimd ripd ripngd zebra pbrd staticd bfdd fabricd vrrpd; do
21 if [ -e /var/run/frr/$i.pid ] ; then
22 pids="$pids $(cat /var/run/frr/$i.pid)"
25 [ -n "$pids" ] && kill -USR1 $pids || true