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: RESOLVED FIXED
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: 2021-07-31 02:04 UTC (History)
3 users (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.
Comment 1 Quentin Retornaz 2021-07-23 21:45:11 UTC
Hello,
If my pull request for maintaining this package again is merged, I’ll fix this.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-07-31 01:45:06 UTC
(In reply to Quentin Retornaz from comment #1)
> Hello,
> If my pull request for maintaining this package again is merged, I’ll fix
> this.

Generally, you should tag the commits using Bug/Closes in the PR, and the bot will do it. And PRs to take over maintainership should usually include fixes to the package.
Comment 3 Larry the Git Cow gentoo-dev 2021-07-31 02:04:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b20e9ec89067302993eb5380c509830967ff5e1a

commit b20e9ec89067302993eb5380c509830967ff5e1a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-07-31 02:04:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-07-31 02:04:24 +0000

    net-dns/getdns: add 'copytruncate' to logrotate configuration
    
    Closes: https://bugs.gentoo.org/719868
    Signed-off-by: Sam James <sam@gentoo.org>

 net-dns/getdns/files/stubby.logrotate | 1 +
 1 file changed, 1 insertion(+)