You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/ipn
Andrew Lytvynov 955e2fcbfb
ipn/ipnlocal: run "tailscale update" via systemd-run on Linux (#10229)
When we run tailscled under systemd, restarting the unit kills all child
processes, including "tailscale update". And during update, the package
manager will restart the tailscaled unit. Specifically on Debian-based
distros, interrupting `apt-get install` can get the system into a wedged
state which requires the user to manually run `dpkg --configure` to
recover.

To avoid all this, use `systemd-run` where available to run the
`tailscale update` process. This launches it in a separate temporary
unit and doesn't kill it when parent unit is restarted.

Also, detect when `apt-get install` complains about aborted update and
try to restore the system by running `dpkg --configure tailscale`. This
could help if the system unexpectedly shuts down during our auto-update.

Fixes https://github.com/tailscale/corp/issues/15771

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
7 months ago
..
conffile ipn/{conffile,ipnlocal}: start booting tailscaled from a config file w/ auth key 8 months ago
ipnauth ipn/ipnauth: improve the Windows token administrator check 7 months ago
ipnlocal ipn/ipnlocal: run "tailscale update" via systemd-run on Linux (#10229) 7 months ago
ipnserver ipn/localapi: only perform local-admin check in serveServeConfig (#10163) 7 months ago
ipnstate ipn/{ipnlocal,ipnstate,localapi}: add localapi endpoints for client self-update (#10188) 7 months ago
localapi ipn/{ipnlocal,ipnstate,localapi}: add localapi endpoints for client self-update (#10188) 7 months ago
policy ipn,tailconfig: clean up unreleased and removed app connector service 7 months ago
store cmd/k8s-operator,ipn/store/kubestore: patch secrets instead of updating 9 months ago
backend.go cmd/tailscale,ipn/ipnlocal: print debug component names 8 months ago
conf.go ipn: add user pref for running web client 7 months ago
doc.go all: update copyright and license headers 1 year ago
fake_test.go all: update copyright and license headers 1 year ago
ipn_clone.go ipn: introduce app connector advertisement preference and flags 7 months ago
ipn_test.go net/packet: split off checksum munging into different pkg 8 months ago
ipn_view.go ipn: introduce app connector advertisement preference and flags 7 months ago
prefs.go ipn: introduce app connector advertisement preference and flags 7 months ago
prefs_test.go ipn: introduce app connector advertisement preference and flags 7 months ago
serve.go ipn/localapi: require local Windows admin to set serve path (#9969) 7 months ago
serve_test.go ipn/localapi: require local Windows admin to set serve path (#9969) 7 months ago
store.go taildrop: lazily perform full deletion scan after first taildrop use (#10137) 7 months ago
store_test.go ipn: avoid useless no-op WriteState calls 10 months ago