Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 107484

Summary: net-misc/stunnel init script cannot stop stunnel process in chroot environment
Product: Gentoo Linux Reporter: Denny Page <denny>
Component: Current packagesAssignee: Lance Albertson (RETIRED) <ramereth>
Status: RESOLVED FIXED    
Severity: normal CC: bugs.gentoo.09-17, pentek.imre, ramereth, veszig
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to support finding pid file in chroot environment
fix init.d script

Description Denny Page 2005-09-28 01:48:13 UTC
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.
Comment 1 Denny Page 2005-09-28 01:51:46 UTC
Created attachment 69395 [details, diff]
Patch to support finding pid file in chroot environment
Comment 2 Georg Weiss 2008-07-12 13:09:57 UTC
I'd really like to have this patch include in current stunnel ebuild. Please (re)think about appling it.

Thanks
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-12-14 21:20:10 UTC
*** Bug 250816 has been marked as a duplicate of this bug. ***
Comment 4 Georg Weiss 2008-12-18 12:51:13 UTC
Any progress on this?
Comment 5 Boris HUISGEN 2009-03-09 16:22:02 UTC
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.
Comment 6 Lance Albertson (RETIRED) gentoo-dev 2009-08-24 16:18:33 UTC
This should be fixed in stunnel-4.27-r1. Let me know if it doesn't fix it!