Open tunnel only once network is online
This commit is contained in:
parent
0ed868ff6d
commit
c7f4934014
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue