Files
pmaports-rtwo/extra-repos/systemd/systemd-services/system-tailscaled.service
T
Caleb Connolly 66d8fa2e48 systemd/systemd-services: add tailscale service (MR 5806) (MR 5563)
Add the service file for tailscale and its default environment file.

[ci:skip-build]: already built successfully in CI
2025-01-10 13:02:36 +01:00

24 lines
632 B
Desktop File

[Unit]
Description=Tailscale node agent
Documentation=https://tailscale.com/kb/
Wants=network-pre.target
After=network-pre.target NetworkManager.service systemd-resolved.service
[Service]
EnvironmentFile=/etc/default/tailscaled
ExecStart=/usr/sbin/tailscaled --state=/var/lib/tailscale/tailscaled.state --socket=/run/tailscale/tailscaled.sock --port=${PORT} $FLAGS
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