Syncthing as a service
đź› Syncthing Setup Guide with whoami
-
Check installation
Make sure Syncthing is installed correctly:syncthing --versionThis confirms the binary is available.
-
Enable the service at boot and start immediately
Syncthing ships with a systemd unit file namedsyncthing@.service.
You can automatically insert your current username withwhoami:sudo systemctl enable syncthing@$(whoami).service sudo systemctl start syncthing@$(whoami).service -
Verify service status
systemctl status syncthing@$(whoami).serviceLook for “active (running)” in the output.
If it’s not running, check logs with:journalctl -u syncthing@$(whoami).service -
Firewall considerations
- Syncthing uses 22000/tcp for sync traffic.
- It also uses 21027/udp for local discovery.
With
ufw:sudo ufw allow 22000/tcp sudo ufw allow 21027/udpThe commands shown are for
ufw. If you use another firewall, adjust accordingly.
Member discussion