From 7988f75b87950ecdffc71cbae431eacff901d197 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 9 Nov 2020 20:13:51 -0800 Subject: [PATCH] tailscaled.service: also cleanup prior to starting. Fixes #813. Signed-off-by: David Anderson --- cmd/tailscaled/tailscaled.service | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/tailscaled/tailscaled.service b/cmd/tailscaled/tailscaled.service index 7d61d656e..a6680fdf1 100644 --- a/cmd/tailscaled/tailscaled.service +++ b/cmd/tailscaled/tailscaled.service @@ -6,6 +6,7 @@ After=network-pre.target [Service] EnvironmentFile=/etc/default/tailscaled +ExecStartPre=/usr/sbin/tailscaled --cleanup ExecStart=/usr/sbin/tailscaled --state=/var/lib/tailscale/tailscaled.state --socket=/run/tailscale/tailscaled.sock --port $PORT $FLAGS ExecStopPost=/usr/sbin/tailscaled --cleanup