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.
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.