stunnel4 starting before network on Xenial

Mike Pastore mike at oobak.org
Sat Jul 23 20:25:34 UTC 2016


Hi folks,

I'm using stunnel4 to secure Redis replication clients over the public
internet. I've noticed that when I reboot the master server, stunnel4 fails
to start with the following journal entries:

Jul 23 20:06:57 tor-master-001 stunnel4[1446]: [!] bind: Cannot assign
requested address (99)
Jul 23 20:06:57 tor-master-001 stunnel4[1446]: [!] Error binding service
[redis] to 159.203.23.157:6379
Jul 23 20:06:57 tor-master-001 stunnel4[1446]: [ ] Closing service [redis]
Jul 23 20:06:57 tor-master-001 stunnel4[1446]: [ ] Service [redis] closed
Jul 23 20:06:57 tor-master-001 stunnel4[1446]: failed

159.203.23.157 is my public IP address. Guessing that stunnel4 is starting
before the network and is therefore unable to bind to the address, I added
$network to Required-Start in /etc/init.d/stunnel4 and that seems to have
solved the problem.

Thoughts? Can we update the package with this fix? Or is there a better fix?

Thank you,

Mike Pastore
mike at oobak.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-motu/attachments/20160723/54ae44ff/attachment.html>


More information about the Ubuntu-motu mailing list