Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 795123 - net-vpn/i2pd: logrotate script assumes daemon is always running
Summary: net-vpn/i2pd: logrotate script assumes daemon is always running
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Alexey Korepanov
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-06-09 20:04 UTC by PF4Public
Modified: 2021-06-15 14:42 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 PF4Public 2021-06-09 20:04:11 UTC
Logrotate script assumes daemon is always running and tries executing `cat /run/i2pd/i2pd.pid`, which might fail if i2pd is not running failing the rotation itself, keeping logs indefinitely.

Reproducible: Always
Comment 1 Alexey Korepanov 2021-06-15 14:24:44 UTC
PF4Public, thanks for the report!
Comment 2 Larry the Git Cow gentoo-dev 2021-06-15 14:42:28 UTC
The bug has been closed via the following commit(s):

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

commit 9f98f4254c4abca5ccb691e83614386866942f2a
Author:     Alexey Korepanov <kaikaikai@yandex.ru>
AuthorDate: 2021-06-15 14:19:52 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-06-15 14:39:30 +0000

    net-vpn/i2pd: fix logrotate #795123
    
    Signed-off-by: Alexey Korepanov <kaikaikai@yandex.ru>
    Closes: https://bugs.gentoo.org/795123
    Closes: https://github.com/gentoo/gentoo/pull/21254
    Signed-off-by: Sam James <sam@gentoo.org>

 .../i2pd/files/{i2pd-2.6.0-r3.logrotate => i2pd-2.38.0-r1.logrotate}  | 4 +++-
 net-vpn/i2pd/{i2pd-2.38.0.ebuild => i2pd-2.38.0-r1.ebuild}            | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)