Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36403 - stunnel does not handle its own pid file correctly
Summary: stunnel does not handle its own pid file correctly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
: 37986 61077 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-23 18:40 UTC by John Davis (zhen) (RETIRED)
Modified: 2005-01-07 04:14 UTC (History)
3 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 John Davis (zhen) (RETIRED) gentoo-dev 2003-12-23 18:40:00 UTC
stunnel cannot write to /var/run/stunnel.pid because it drops perms to nobody:nogroup when it starts. If I create the file /var/run/stunnel.pid and give nobody full (750) perms to it, stunnel will still not start because it needs to create the file itself. 

Reproducible: Always
Steps to Reproduce:
1. emerge stunnel
2. /etc/init.d/stunnel start; /etc/init.d/stunnel stop
3. check stunnel.log, no stunnel running!




Maybe this is an upstream issue, mainly because stunnel should not bail out if
the pidfile is already available, but my current recommendation is to give
stunnel its own user and give that user write access to /etc/stunnel, placing
the pidfile in there.
Comment 1 John Davis (zhen) (RETIRED) gentoo-dev 2003-12-23 18:42:54 UTC
i see that 4.04-r2 adds the stunnel user, but there are still no perms set on /etc/stunnel or the pid file
Comment 2 Daniel Ahlberg (RETIRED) gentoo-dev 2004-01-03 11:32:56 UTC
-r3 in CVS which should fix this and other stuff.
Comment 3 John Davis (zhen) (RETIRED) gentoo-dev 2004-01-08 16:08:50 UTC
-r3 works great for me - thanks for the cleanup :)
Comment 4 Daniel Ahlberg (RETIRED) gentoo-dev 2004-02-21 13:30:35 UTC
*** Bug 37986 has been marked as a duplicate of this bug. ***
Comment 5 Daniel Ahlberg (RETIRED) gentoo-dev 2005-01-07 04:14:52 UTC
*** Bug 61077 has been marked as a duplicate of this bug. ***