[stunnel-users] How to start stunnel4 service directly after installation, without reboot

Tu, Robin Robin.Tu at digi.com
Wed Jan 15 07:53:49 CET 2020


I'm testing openvpn over stunnel4 and I found a weird issue:  I have to restart my Ubuntu 18.04 to be able to start the stunnel service.  Don't know why I couldn't start the service dicrectly by :
Systemctl start stunnel4

OS: Ubuntu 18.04
#>apt install stunnel4
and  generate a conf like this:
cert=/etc/stunnel/server.crt
key=/etc/stunnel/server.key
[openvpn-localhost]
accept = 8443
connect = 127.0.0.1:11000

Now start the service:
#>systemctl start stunnel4

#>systemctl status stunnel4
stunnel4.service - LSB: Start or stop stunnel 4.x (TLS tunnel for network daemons)
   Loaded: loaded (/etc/init.d/stunnel4; generated)
   Active: active (exited) since Wed 2020-01-15 14:40:11 CST; 10min ago
     Docs: man:systemd-sysv-generator(8)
    Tasks: 0 (limit: 4915)
   CGroup: /system.slice/stunnel4.service

Jan 15 14:40:11 iZ8vb6j45u355dm236tpibZ systemd[1]: Starting LSB: Start or stop stunnel 4.x (TLS tunnel for network daemons)...
Jan 15 14:40:11 iZ8vb6j45u355dm236tpibZ stunnel4[3583]: TLS tunnels disabled, see /etc/default/stunnel4
Jan 15 14:40:11 iZ8vb6j45u355dm236tpibZ systemd[1]: Started LSB: Start or stop stunnel 4.x (TLS tunnel for network daemons).

Why it exited?  But after reboot, same command will just work.  Is it a bug?
I want to find a way to start it directly after installation. Please help!

Best Regards
Robin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20200115/b65721d3/attachment.htm>


More information about the stunnel-users mailing list