24 Apr
2020
24 Apr
'20
3:21 p.m.
Hello!
I found the cause. /lib/systemd/system/bird.service includes the line "ExecStartPre=/usr/sbin/bird -p", and if the log file doesn't exist, it creates it owned by root:root
root@rs1:/etc/bird# rm /var/log/bird/bird.log root@rs1:/etc/bird# /usr/sbin/bird -p root@rs1:/etc/bird# ls -l /var/log/bird/bird.log -rw-r--r-- 1 root root 0 Apr 24 11:07 /var/log/bird/bird.log
The documentation for the -p flag states:
-p Just parse the config file and exit. Return value is zero if the config file is valid, nonzero if there are some errors.
So it seems like a bug that it creates the log file.
Yes, I confirm that this is a bug. We'll fix that. Thank you for your investigation and report. Maria