German version:
English version will follow
1 Like
fdbryant3
(F. D. Bryant III)
May 18, 2015, 7:00pm
3
Very good video, I might of moved to Syncthing earlier if this had existed sooner. That said for the average user something like SyncTrayzor needs to be incorporated into the main project to make setup as easy as possible.
Zillode
(Zillode)
May 18, 2015, 9:08pm
5
Thanks! added to the wiki
Wow thanks!
By the way, there is a entry in the wiki for windows autostart but not for linux autostart.
What is the best way to start syncthing at ubuntu startup? (This will be my next video)
On my RPi I used a init.d start script. Another idea would be the crontab with @reboot
Do you have a better idea?
edit:
forget it I just forgot to scroll down in the wiki
1 Like
I'd like to run syncthing automatically, and keep it running.
I'm sure most people reading this already have their own ways of doing this, but I thought I'd explain how I do it for reference. I've got two machines: call them "desktop" (my main computer which I sit at all the time; running Ubuntu 13.10) and "server" (my home server, in a cupboard, running Ubuntu 12.04), which share repositories. Syncthing does already do a job of restarting itself if required, but in a weird way: if you run sy…
A couple more options: one for a systemd service file:
[Unit]
Description=Syncthing service for %i
After=network.target
[Service]
User=%i
Environment=STNORESTART=yes
ExecStart=/usr/bin/syncthing
Restart=on-success
[Install]
WantedBy=multi-user.target
And a debian init.d script based on the btsync one:
#!/bin/sh
### BEGIN INIT INFO
# Provides: syncthing
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-…
/etc/init/syncthing.conf
author "Martijn Lievaart <m (at) rtij.nl>"
description "SyncThing"
exec su -c '/usr/bin/syncthing --no-browser' martijn
#
# We could start earlier, but let's spread initial load a bit
#
start on (local-filesystems and net-device-up IFACE!=lo)
Console goes to /var/log/upstart/syncthing.log. Obviously you need to substitute your own username, and obviously, you need to configure syncthing.
Hope this helps somebody, Martijn "M4" Lievaart
Ubuntu is the most popular flavour of *nix. The current Ubuntu uses Upstart for jobs. It is preferable to install the syncthing-inotify addon on Ubuntu as otherwise syncthing will use brute-force at regular intervals to scan for changes rather than sync the files immediately when they change.
However, for whatever reason, the Syncthing developers have not added upstart scripts to the /etc/ folder in the Syncthing or Syncthing-Inotify repos. Therefore I would be grateful if someone familiar wi…