3 ms·
More information: https://docs.syncthing.net/users/autostart.html#using-systemd https://docs.syncthing.net/users/autostart.html#using-system... The Debian/Ubun
by raek 5y ago
More information: https://docs.syncthing.net/users/autostart.html#using-systemd https://docs.syncthing.net/users/autostart.html#using-system...
The Debian/Ubuntu packages ship all the needed files. You only need to activate them.
- deaddabe 5y agoThanks! I will use the enable-linger on the NAS running 24/7, and configure it using a remote browser (probably via SSH tunnel). This way I can always sync to NAS even if everything else is off, and the laptop/desktop will sync from the NAS when required.
- raek 5y agoI saw just now that there are also system units (started with "systemctl enable --now syncthing@USER_NAME_HERE.service", note the lack of --user). If you use those then you don't need to activate linger. Using those is probably considered the more standard way of doing things on an unattended server.
- deaddabe 5y agoNice catch, this usecase seems common enough.
- jszymborski 5y agoSupervisord also works really well for this purpose https://docs.syncthing.net/users/autostart.html#using-supervisord https://docs.syncthing.net/users/autostart.html#using-superv...