Re: Best Way to Contribute Bug Fix?
Reply #3 –
Great, that simplifies things! Here's a diff of the fix, taken from the latest Gentoo version of the script:
diff --git a/tailscaled b/tailscaled
index fb26fc1..d68e3c8 100644
--- a/tailscaled
+++ b/tailscaled
@@ -5,7 +5,7 @@
name="tailscaled"
description="Tailscale node agent"
command=/usr/bin/tailscaled
-command_args="--state=/run/tailscale/tailscaled.state --socket=/run/tailscale/tailscaled.sock --port ${tailscaled_port:-41641} ${tailscaled_args}"
+command_args="--state=/var/lib/tailscale/tailscaled.state --socket=/run/tailscale/tailscaled.sock --port ${tailscaled_port:-41641} ${tailscaled_args}"
supervisor=supervise-daemon
depend() {
Telling tailscaled to use a /var/lib/ path for its state instead of a /run/ path ensures that it persists between boots. This allows a machine's Tailscale client to cache authentications; otherwise (as with the old implementation), the user needs to perform a web-based OAUTH on each reboot.