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