Michal Trojnara Michal.Trojnara@mirt.net wrote:
Eric Wong wrote:
I've reordered the initalization methods in the below patch which fixes both daemonization and pid files being broken with chroots.
I think I found the solution: ftp://stunnel.mirt.net/stunnel/startup.patch
Also log file is now created within chrooted directory to allow log file rotation on SIGHUP, and also changing log file name without stopping stunnel.
There's still a problem, it now creates the pid file before daemonizing, which makes the pid file invalid.