2020-02-18 21:30:54 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Tailscale node agent
|
|
|
|
Documentation=https://tailscale.com/kb/
|
|
|
|
Wants=network-pre.target
|
2021-06-15 21:23:09 +00:00
|
|
|
After=network-pre.target NetworkManager.service systemd-resolved.service
|
2020-02-18 21:30:54 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
EnvironmentFile=/etc/default/tailscaled
|
2022-09-16 21:18:30 +00:00
|
|
|
ExecStart=/usr/sbin/tailscaled --state=/var/lib/tailscale/tailscaled.state --socket=/run/tailscale/tailscaled.sock --port=${PORT} $FLAGS
|
2020-07-13 10:17:58 +00:00
|
|
|
ExecStopPost=/usr/sbin/tailscaled --cleanup
|
2020-02-18 21:30:54 +00:00
|
|
|
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
RuntimeDirectory=tailscale
|
|
|
|
RuntimeDirectoryMode=0755
|
|
|
|
StateDirectory=tailscale
|
2021-09-28 16:03:03 +00:00
|
|
|
StateDirectoryMode=0700
|
2020-04-04 23:51:40 +00:00
|
|
|
CacheDirectory=tailscale
|
|
|
|
CacheDirectoryMode=0750
|
2020-11-24 23:35:04 +00:00
|
|
|
Type=notify
|
2020-02-18 21:30:54 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|