Created attachment 578126 [details] Set ownership of dir containing PID file appropriately When using the 'setuid' and 'setgid' options in 'stunnel.conf', the init script will change the ownership of the containing directory to 'stunnel', causing the daemon to crash when it tries to create the PID file. 2019.05.30 04:56:36 LOG3[main]: Cannot create pid file /run/stunnel/stunnel.pid 2019.05.30 04:56:36 LOG3[main]: create: Permission denied (13) Attached is a proposed solution to this problem.
Fixed by https://github.com/gentoo/gentoo/commit/021b0cccd5ea0f8b0cdb764ef696a71a5e430487