Configure Syncthing as a system service


  1. Create the user who should run the service, or choose an existing one.

  2. Copy the system syncthing@.service file into the load path of the system instance. Replace <user> with the name of the user who'll own the service.

sudo cp /usr/lib/systemd/system/syncthing@.service /etc/systemd/system/syncthing@<user>.service

(NOTE: The above paths make sense in Ubuntu, but they may not be correct in other Linux distros.)

  1. Enable and start the service. Replace <user> with the actual Syncthing user after the @:
systemctl enable syncthing@<user>.service
systemctl start syncthing@<user>.service

Sources