If a chroot directory is defined in /etc/stunnel/stunnel.con, the pid file for stunnel is created inside the chroot environment. However the init script does not take this into account when stopping the stunnel process. Reproducible: Always Steps to Reproduce: 1. Define a chroot variable in /etc/stunnel/stunnel.conf 2. /etc/init.d/stunnel start 3. /etc/init.d/stunnel stop Actual Results: The stunnel process continues to run. Expected Results: Track the chroot variable in the config file in order to properly locate the pid.
Created attachment 69395 [details, diff] Patch to support finding pid file in chroot environment
I'd really like to have this patch include in current stunnel ebuild. Please (re)think about appling it. Thanks
*** Bug 250816 has been marked as a duplicate of this bug. ***
Any progress on this?
Created attachment 184471 [details] fix init.d script The given patch doesn't work. So I've changed the init.d script to stop process by name and not by PID.
This should be fixed in stunnel-4.27-r1. Let me know if it doesn't fix it!