]> git.proxmox.com Git - mirror_frr.git/commitdiff
packaging: Add pathd to logrotate
authorDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 19 Apr 2022 11:55:42 +0000 (14:55 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 19 Apr 2022 16:13:19 +0000 (19:13 +0300)
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
debian/frr.logrotate
debian/frr.preinst
redhat/frr.logrotate
tools/etc/rsyslog.d/45-frr.conf

index a56a908bdfb50b2aa57fabd043ad97d0966f87fb..ea09c1bf87bcb15c9dc4420c64f542b422a167f5 100644 (file)
@@ -17,7 +17,7 @@
             # 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 \
-                pimd ripd ripngd zebra pbrd staticd bfdd fabricd vrrpd; do
+                pimd 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)"
                 fi
index 0e10e39247a50ef3c37b3f68ac369f6f12458db3..2af5a4ed8f703907791d1790f6047055c26052c3 100644 (file)
@@ -73,6 +73,7 @@ EOF
                -o -f /etc/frr/eigrpd.conf \
                -o -f /etc/frr/babeld.conf \
                -o -f /etc/frr/pbrd.conf \
+               -o -f /etc/frr/pathd.conf \
                -o -f /etc/frr/bfdd.conf; then
                # no explicit statement, but some split config file exists
                # => need to fix vtysh.conf & frr.conf in postinst
index 22b2332b7cab72ec727c11122baf8d4dd48fd969..04ae96b654ee008a6fb1381fef4d5cf885c7c830 100644 (file)
     endscript
 }
 
+/var/log/frr/pathd.log {
+    notifempty
+    missingok
+    postrotate
+        /bin/kill -USR1 `cat /var/run/frr/pathd.pid 2> /dev/null` 2> /dev/null || true
+    endscript
+}
+
 /var/log/frr/pbrd.log {
     notifempty
     missingok
index feeeb13f13fcd29638fb76438481056f9f0e770e..469e95ed7398339a83af26cf7df545b91972df05 100644 (file)
@@ -14,6 +14,7 @@ if  $programname == 'babeld' or
     $programname == 'ospf6d' or
     $programname == 'ospfd' or
     $programname == 'pimd' or
+    $programname == 'pathd' or
     $programname == 'ripd' or
     $programname == 'ripngd' or
     $programname == 'vrrpd' or
@@ -32,6 +33,7 @@ if  $programname == 'babeld' or
     $programname == 'ospf6d' or
     $programname == 'ospfd' or
     $programname == 'pimd' or
+    $programname == 'pathd' or
     $programname == 'ripd' or
     $programname == 'ripngd' or
     $programname == 'vrrpd' or