cmd/tailscaled/*.{target,unit}: add systemd online target
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>
This commit is contained in:
committed by
James Tucker
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
|
||||||
Reference in New Issue
Block a user