Article 56QC2 Installing Syncthing on a Raspberry Pi

Installing Syncthing on a Raspberry Pi

by
Romanof
from LinuxQuestions.org on (#56QC2)
I recently discovered a cross/os utility called syncthing, that allows for a folder(s) to be auto synced across multiple platforms - in my case, MacOS, Debian and Raspian. Works great as a local replacement for Dropbox and ICloud and such. But... While it works as advertised on an iMac and big Debian tower with a GUI, I cannot get it to start at boot on any Raspberry pi that does not have a GUI sesson. In other words, I am trying to get it to work without the need of the GUI.

The raw path to start the utility is /usr/bin/syncthing, but putting that in a shell script in rc.local does nothing. Putting the call in a simple script inside of /etc/init.d gives me the $echo message of Sync Starting which tells me that the init script was called, but the line following the $echo (/usr/bin/syncthing) is being ignored, apparently. As an ordinary use can start the utility manually, I don't think it is a permissions problem.

I have made a bash script called sync.sh and has the only line of code as /usr/bin/syncthing. It works fine when called manually (./sync.sh) but neither rc.local or init.d will run it.

Despite days of searching, it is a no go. I have a feeling that I am not seeing the forest for the trees, and needing to let it rest for a few days.

But any suggestions would be appreciated.latest?d=yIl2AUoC8zA latest?i=4LgvRjnhhuU:CZ2vZHH6vfk:F7zBnMy latest?i=4LgvRjnhhuU:CZ2vZHH6vfk:V_sGLiP latest?d=qj6IDK7rITs latest?i=4LgvRjnhhuU:CZ2vZHH6vfk:gIN9vFw4LgvRjnhhuU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments