How to start Syncthing at startup, on the background?

Launching the program manually after each reboot is a hurdle, and has to be done via console with the Fedora repo build. This leaves behind its console window (as a novice user I haven’t ever really read the output).

Is it possible to create a startup entry in /home/user/.config/autostart and ensure that no console or any other window is launched in Gnome?


The local Syncthing web-interface address is 127.0.0.1:8384

2 Likes

You need to write a startup script and use systemd to make it a service that starts up on boot.

I will paste two links that explain it. Let us know if you need further assistance!

NB: I am zero familiar with Syncthing, just wondering if it doesn’t provide a service that you can start/enable with something like systemctl start syncthing.service?

I actually took a brief look at the syncthing docs, and they describe three methods on how to autostart Syncthing. Systemd is one of them:

https://docs.syncthing.net/users/autostart.html#linux

5 Likes

If you’ve installed the syncthing package from Fedora, it already includes systemd files. To enable it for your user, use:

systemctl --user enable syncthing.service
systemctl --user start syncthing.service
7 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.