stunnel
stunnel copied to clipboard
Unable to restart Stunnel
I am trying to restart my stunnel service on Ubuntu 18.04. But whenever I do restart using systemctl restart stunnel4.service, it fails. But when I do /etc/init.d/stunnel4 restart, it works.
:pancakes: 4.1.0
:woman_cook: 16.8.14
:tophat: Ubuntu 18.04. AWS Cloud
Steps To Reproduce
Steps to reproduce the behavior:
- systemctl restart stunnel4.service -> Fails
:police_car: Expected behavior
Stunnel restarting successfully.
:police_car: Actual behavior
stunnel4[19673]: [ ] Compression disabled stunnel4[19673]: [ ] Snagged 64 random bytes from /dev/urandom stunnel4[19673]: [!] PRNG seeded with 128 bytes total stunnel4[19673]: [!] PRNG was not seeded with enough random bytes stunnel4[19673]: [!] /etc/stunnel/stunnel.conf:49: "[redis]": Failed to initialize TLS sytemd[1]: stunnel4.service: Control process exited, code=exited status=1 stunnel4[19673]: [Failed: /etc/stunnel/stunnel.conf] stunnel4[19673]: You should check that you have specified the pid= in you configuration file systemd[1]: stunnel4.service: Failed with result 'exit-code'. systemd[1]: Failed to start LSB: Start or stop stunnel 4.x (SSL tunnel for network daemons).
:heavy_plus_sign: Additional context
As mentioned above, the restart is failing when used with systemctl, but works when I restart with /etc/init.d/stunnel4 restart
I have the same issue and I am using Ubuntu 18.04.6 LTS on my server