<div dir="ltr">Hi,<div><br></div><div>This patch allows stunnel to be started in daemon mode by systemd's socket activation. This is superior to inetd mode, for all the reasons specified in the stunnel howto. Since systemd is now the default in most of the major Linux distros, it would be great to have this committed upstream.<div>
<br></div><div><a href="https://gist.github.com/marktheunissen/7ce9426e66aa8f0ec2e1">https://gist.github.com/marktheunissen/7ce9426e66aa8f0ec2e1</a><br></div></div><div><br></div><div>Example systemd unit files:</div><div>
<br></div><div>### stunnel.socket</div><div><br></div><div><div><font face="courier new, monospace">[Unit]</font></div><div><font face="courier new, monospace">Description=Stunnel socket</font></div><div><font face="courier new, monospace">After=network.target</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">[Socket]</font></div><div><font face="courier new, monospace">ListenStream=9999</font></div></div><div><br></div><div>### stunnel.service</div>
<div><br></div><div><div><font face="courier new, monospace">[Unit]</font></div><div><font face="courier new, monospace">Description=Stunnel service</font></div><div><font face="courier new, monospace">After=network.target</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">[Service]</font></div><div><font face="courier new, monospace">Type=forking</font></div><div><font face="courier new, monospace">ExecStart=stunnel /etc/stunnel/stunnel.conf</font></div>
</div><div><br></div><div>Thanks,</div><div>Mark Theunissen</div></div>