Re: Starting stunnel with systemd.
On Sun, Apr 23, 2023 at 12:57 PM <peter@easthope.ca> wrote:
>
> 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.
Two items come to mind. First, how quickly did you restart the
service? Is the the socket in use because it is lingering?
Second, what does the stunnel.conf look like?
The man page says REUSEADDR=no is the default
(https://manpages.ubuntu.com/manpages/trusty/man8/stunnel4.8.html):
socket = a:SO_REUSEADDR=no (enabled by default)
Jeff
Reply to: