Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949988 - net-vpn/i2pd-2.55.0 fails to rotate log and /etc/init.d/i2pd fails to stop service
Summary: net-vpn/i2pd-2.55.0 fails to rotate log and /etc/init.d/i2pd fails to stop se...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Alexey Korepanov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-20 03:04 UTC by 10walls
Modified: 2025-05-06 15:58 UTC (History)
2 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 10walls 2025-02-20 03:04:47 UTC
1. /etc/logrotate.d/i2pd sends incorrect SIGHUP to i2pd to reopen logs
   i2pd-2.55.0/daemon/UnixDaemon.cpp seems to confirms SIGUSR1 should be used. I only found this out when my /var/log disk usage is full.
2. /etc/init.d/i2pd stop fails to stop daemon
   I am using openrc, stop is issued, openrc uses "start-stop-daemon --stop --retry SIGTERM/20/SIGKILL/20 --exec /usr/bin/i2pd" and fails to find the actual process, likely due to it running as i2pd rather than root. Manually adding a custom stop() in /etc/conf.d/i2pd to use --pid /run/i2pd/i2pd.pid resolved this,

Reproducible: Always

Steps to Reproduce:
1. Force a log rotate (currently SIGHUP is sent), /proc/<i2pd>/fd/3 entry now points to a deleted file.
2. Start with /etc/init.d/i2pd start, and then stop it via /etc/init.d/i2pd --debug stop.
Actual Results:  
1. Log file not reopened and still takes up space.
2. i2pd process left running.

Expected Results:  
1. Log rotated.
2. i2pd process stopped.
Comment 1 Filip Kobierski 2025-05-06 15:58:29 UTC
I think that is due to the fact that now we use both i2pd's and SSD's --pidfile flags but I need to research this further.