Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3474

[Solved] Runnng Stunnel On Bookworm fails

$
0
0
I have been trying to run stunnel as a service via systemd and the service does not start. Starting stunnel via the command sudo stunnel4 is successful and so the config file seems to be perfectly fine. Whenever I try to start the service via systemd through the command
# systemctl start stunnel@telnet the service seems to start and immediately terminates journalctl seems to have these two entries

Feb 23 01:40:46 newcore systemd[1]: Started stunnel@telnet.service - TLS tunnel for network daemons - per-config-file service.
Feb 23 01:40:46 newcore systemd[1]: stunnel@telnet.service: Deactivated successfully.


And the # systemctl status stunnel@telnet gives the following output
stunnel@telnet.service - TLS tunnel for network daemons - per-config-file service
Loaded: loaded (/lib/systemd/system/stunnel@.service; disabled; preset: enabled)
Active: inactive (dead)
Docs: man:stunnel4(8)


The systemd file for stunnel is as follows

[Unit]
Description=TLS tunnel for network daemons - per-config-file service
Documentation=man:stunnel4(8)
PartOf=stunnel.target

[Service]
ExecStart=/usr/bin/stunnel4 /etc/stunnel/%i.conf
PrivateTmp=yes

[Install]
WantedBy=multi-user.target


Can anyone suggest what is the issue here. This is not system specific as I have the same behavior in multiple Debian 12 systems

Thanks

Statistics: Posted by escape214 — 2024-02-23 08:02 — Replies 2 — Views 66



Viewing all articles
Browse latest Browse all 3474

Trending Articles