2020-02-18 21:30:54 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Tailscale node agent
|
|
|
|
Documentation=https://tailscale.com/kb/
|
|
|
|
Wants=network-pre.target
|
|
|
|
After=network-pre.target
|
2020-02-18 21:46:03 +00:00
|
|
|
StartLimitIntervalSec=0
|
|
|
|
StartLimitBurst=0
|
2020-02-18 21:30:54 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
EnvironmentFile=/etc/default/tailscaled
|
2020-02-18 21:46:03 +00:00
|
|
|
ExecStart=/usr/sbin/tailscaled --state=/var/lib/tailscale/tailscaled.state --socket=/run/tailscale/tailscaled.sock --port $PORT $FLAGS
|
2020-02-18 21:30:54 +00:00
|
|
|
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
RuntimeDirectory=tailscale
|
|
|
|
RuntimeDirectoryMode=0755
|
|
|
|
StateDirectory=tailscale
|
|
|
|
StateDirectoryMode=0750
|
|
|
|
User=root
|
|
|
|
Group=root
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|