I am using Tailscale on Solus, a distribution that has no official package yet, so I use the latest static binary. As mentioned in the documentation, there is an example tailscaled.service
provided in the systemd/
subfolder. I assume it is just an example, because the path to tailscaled
is preset to /usr/sbin/tailscaled
.
I extracted the static binary to /home/kewbak/.config/tailscale/tailscaled
so I edited the service file accordingly:
[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
ExecStartPre=/home/kewbak/.config/tailscale/tailscaled --cleanup
ExecStart=/home/keabak/.config/tailscale/tailscaled --state=/var/lib/tailscale/tailscaled.state --socket=/run/tailscale/tailscaled.sock --port 41641
ExecStopPost=/home/kewbak/.config/tailscale/tailscaled --cleanup
Restart=on-failure
RuntimeDirectory=tailscale
RuntimeDirectoryMode=0755
StateDirectory=tailscale
StateDirectoryMode=0700
CacheDirectory=tailscale
CacheDirectoryMode=0750
Type=notify
[Install]
WantedBy=multi-user.target
Then copied the service file to /etc/systemd/system/tailscaled.service
, enabled it with sudo systemctl enable tailscaled
and tried to start it with sudo systemctl start tailscaled
. Unfortunately this seems to fail terribly:
Job for tailscaled.service failed because of unavailable resources or another system error.
See "systemctl status tailscaled.service" and "journalctl -xe" for details.
kewbak@homimi-solus ~/.config/tailscale/systemd $ sudo systemctl status tailscaled
● tailscaled.service - Tailscale node agent
Loaded: loaded (/etc/systemd/system/tailscaled.service; enabled; vendor preset: enabled)
Active: failed (Result: resources) since Sat 2021-10-16 18:45:10 CEST; 19s ago
Docs: https://tailscale.com/kb/
CPU: 0
Oct 16 18:45:10 homimi-solus systemd[1]: tailscaled.service: Scheduled restart job, restart counter is at 5.
Oct 16 18:45:10 homimi-solus systemd[1]: Stopped Tailscale node agent.
Oct 16 18:45:10 homimi-solus systemd[1]: tailscaled.service: Start request repeated too quickly.
Oct 16 18:45:10 homimi-solus systemd[1]: tailscaled.service: Failed with result 'resources'.
Oct 16 18:45:10 homimi-solus systemd[1]: Failed to start Tailscale node agent.
kewbak@homimi-solus ~/.config/tailscale/systemd $ journalctl -xe
Oct 16 18:45:29 homimi-solus sudo[690562]: kewbak : TTY=pts/3 ; PWD=/home/kewbak/.config/tailscale/systemd ; USER>
Oct 16 18:45:29 homimi-solus sudo[690562]: pam_unix(sudo:session): session opened for user root by (uid=1000)
Oct 16 18:45:29 homimi-solus sudo[690562]: pam_unix(sudo:session): session closed for user root
What am I doing wrong? Thank you all in advance for your help!