mirror of
https://github.com/tailscale-dev/deck-tailscale.git
synced 2025-10-22 07:28:14 +00:00
This commit is contained in:
23
tailscaled.service
Normal file
23
tailscaled.service
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Tailscale node agent
|
||||||
|
Documentation=https://tailscale.com/kb/
|
||||||
|
Wants=network-pre.target
|
||||||
|
After=network-pre.target NetworkManager.service systemd-resolved.service systemd-sysext.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStartPre=/usr/sbin/tailscaled --cleanup
|
||||||
|
ExecStart=/usr/sbin/tailscaled --state=/var/lib/tailscale/tailscaled.state --socket=/run/tailscale/tailscaled.sock
|
||||||
|
ExecStopPost=/usr/sbin/tailscaled --cleanup
|
||||||
|
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
RuntimeDirectory=tailscale
|
||||||
|
RuntimeDirectoryMode=0755
|
||||||
|
StateDirectory=tailscale
|
||||||
|
StateDirectoryMode=0700
|
||||||
|
CacheDirectory=tailscale
|
||||||
|
CacheDirectoryMode=0750
|
||||||
|
Type=notify
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Reference in New Issue
Block a user