Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 719868 - net-dns/getdns: stubby logrotate config needs copytruncate flag
Summary: net-dns/getdns: stubby logrotate config needs copytruncate flag
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-28 00:41 UTC by Maciej S. Szmigiero
Modified: 2020-04-29 21:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej S. Szmigiero 2020-04-28 00:41:39 UTC
net-dns/getdns stubby init script redirects its (stubby) runtime output to /var/log/stubby.log using the shell ">>" operator.

However, a shell does not know that it has to reopen this file after it gets rotated by logrotate, resulting in stubby still outputting to a now-deleted old log file, effectively stopping the logging.

Please add "copytruncate" to stubby logrotate config so logrotate will truncate this log file instead of removing it, fixing this issue.