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