Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 896038

Summary: net-misc/frr-8.4.1: log file is empty after logrotate
Product: Gentoo Linux Reporter: Victor Costache <victor.costache>
Component: Current packagesAssignee: Alarig Le Lay <alarig>
Status: IN_PROGRESS ---    
Severity: normal CC: jaco, jstein, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Victor Costache 2023-02-23 14:45:38 UTC
The current version (net-misc/frr-8.4.1) and previous ones (8.2.2 and 8.1-r1) have the same issue: the /var/log/frr/frr.log file is empty after the first logrotate.

Here is the relevant snippet from /etc/logrotate.d/frr:

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

cat /var/run/*syslog*.pid returns "No such file or directory"
Comment 1 Jaco Kroon 2024-10-02 09:54:19 UTC
Logrotate file looks drastically different now, looking at 9.1.2 at least (about to push), can we mark this as obsolete?