mirror of
https://github.com/tailscale/tailscale.git
synced 2026-02-08 17:21:33 +01:00
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:
parent
f50e5a2d33
commit
926bbd7d45
4
cmd/tailscaled/tailscale-online.target
Normal file
4
cmd/tailscaled/tailscale-online.target
Normal file
@ -0,0 +1,4 @@
|
||||
[Unit]
|
||||
Description=Tailscale is online
|
||||
Requires=tailscale-wait-online.service
|
||||
After=tailscale-wait-online.service
|
||||
12
cmd/tailscaled/tailscale-wait-online.service
Normal file
12
cmd/tailscaled/tailscale-wait-online.service
Normal file
@ -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…
x
Reference in New Issue
Block a user