Hello, I followed a tutorial to install Syncthing on Steamdeck, and to enable autostart, copying syncthing.service file, and entering the 2 konsole commands:
systemctl --user enable syncthing
systemctl --user start syncthing.
The tutorial says that to disable the autostart, I have to enter the same 2 commands and in the same order, which sounds a little weird to me, and it doesn’t seem to work, in fact.
Every time Linux boots and launches systemd, systemd scans a bunch of predefined directories including user homes where it finds your configured services under /home/deck/.config/systemd.
The counterpart to systemctl enable removes the soft link:
systemctl --user disable syncthing.service
Because systemctl is simply adding/removing soft links, the following command effectively does the same thing:
The --user flag tells systemctl to put the soft link under /home/deck/.config/systemd/user/ instead of /etc/systemd/user/ or /usr/local/systemd/user/.
The --now flag tells systemctl that you want the change to take effect immediately instead of after a reboot or requiring a systemctl stop or systemctl start.