Using the new wait command from #18574 provide a tailscale-online.target that has a similar usage model to the conventional `network-online.target`. Updates #3340 Updates #11504 Signed-off-by: James Tucker <james@tailscale.com>main
parent
a98036b41d
commit
30e12310f1
@ -0,0 +1,4 @@ |
||||
[Unit] |
||||
Description=Tailscale is online |
||||
Requires=tailscale-wait-online.service |
||||
After=tailscale-wait-online.service |
||||
@ -0,0 +1,12 @@ |
||||
[Unit] |
||||
Description=Wait for Tailscale to be online |
||||
After=tailscaled.service |
||||
Requires=tailscaled.service |
||||
|
||||
[Service] |
||||
Type=oneshot |
||||
ExecStart=/usr/bin/tailscale wait |
||||
RemainAfterExit=yes |
||||
|
||||
[Install] |
||||
WantedBy=tailscale-online.target |
||||
Loading…
Reference in new issue