Open tunnel only once network is online

This commit is contained in:
Joscha 2025-02-27 22:35:59 +01:00
parent 0ed868ff6d
commit c7f4934014

View file

@ -1,6 +1,10 @@
[Unit] [Unit]
Description=Showbits Thermal Printer Tunnel Description=Showbits Thermal Printer Tunnel
# https://wiki.archlinux.org/title/Systemd#Running_services_after_the_network_is_up
Wants=network-online.target
After=network-online.target
[Service] [Service]
Type=simple Type=simple
ExecStart=ssh plugh@plugh.de -NR 8005:localhost:8001 ExecStart=ssh plugh@plugh.de -NR 8005:localhost:8001