Hi,
After starting interactively, stunnel works.
To automate, this service file was created.
$ cat /etc/systemd/system/stunnel.service
[Unit]
Description=StunnelStarter
Documentation=man:stunnel(8)
After=network.target auditd.service
[Service]
ExecStart=/usr/bin/stunnel /etc/stunnel/stunnel.conf foreground=yes
Restart=no
Type=simple
[Install]
WantedBy=multi-user.target
Alias=stunnel.service
After booting, no stunnel.
$ ps aux | grep stunnel
root 1463 0.0 0.0 6244 700 pts/0 S+ 09:31 0:00 grep
stunnel
$ systemctl status stunnel
* stunnel.service - StunnelStarter
Loaded: loaded (/etc/systemd/system/stunnel.service; enabled;
vendor preset: enabled)
Active: inactive (dead) since Sun 2023-04-23 08:52:52 PDT; 7min ago
Docs: man:stunnel(8)
Process: 572 ExecStart=/usr/bin/stunnel /etc/stunnel/stunnel.conf
foreground=yes (code=exited, status=0/SUCCESS)
Main PID: 572 (code=exited, status=0/SUCCESS)
CPU: 13ms
Apr 23 08:52:52 imager stunnel[572]: LOG5[ui]: Threading:PTHREAD
Sockets:POLL,IPv6,SYSTEMD TLS:ENGINE,FIPS,OCSP,PSK,SNI Auth:LIBWRAP
Apr 23 08:52:52 imager stunnel[572]: LOG5[ui]: Reading configuration
from file /etc/stunnel/stunnel.conf
Apr 23 08:52:52 imager stunnel[572]: LOG5[ui]: UTF-8 byte order mark not
detected
Apr 23 08:52:52 imager stunnel[572]: LOG5[ui]: FIPS mode disabledApr 23
08:52:52 imager stunnel[572]: LOG4[ui]: Service [pop3] needs
authenticati
on to prevent MITM attacks
Apr 23 08:52:52 imager stunnel[572]: LOG5[ui]: Configuration successful
Apr 23 08:52:52 imager stunnel[584]: LOG5[main]: Terminated
Apr 23 08:52:52 imager stunnel[584]: LOG5[main]: Terminating 1 service
thread(s)
Apr 23 08:52:52 imager stunnel[584]: LOG5[main]: Service threads
terminated
Apr 23 08:52:52 imager systemd[1]: stunnel.service: Succeeded.
Terminated. Why?
Thanks, ... P.