Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107484 - net-misc/stunnel init script cannot stop stunnel process in chroot environment
Summary: net-misc/stunnel init script cannot stop stunnel process in chroot environment
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Lance Albertson (RETIRED)
URL:
Whiteboard:
Keywords:
: 250816 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-28 01:48 UTC by Denny Page
Modified: 2010-01-15 20:31 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to support finding pid file in chroot environment (stunnel.diffs,1.11 KB, patch)
2005-09-28 01:51 UTC, Denny Page
Details | Diff
fix init.d script (stunnel,838 bytes, text/plain)
2009-03-09 16:22 UTC, Boris HUISGEN
Details

Note You need to log in before you can comment on or make changes to this bug.
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!