I’ve been using InSync for quite a while now - it’s basically a google drive client with better options and multiple account support - I’m using it to synchronize content (tv shows, movies, pictures) from my Windows 10 HTPC into the OSMC Raspberry Pi, which serves as an HTPC on-the-go extension. Very useful for traveling, hotel rooms, etc…
For whoever’s interested, the raspberry pi version of InSync is available here:
My problem: I’m trying to have InSync start on startup of the raspberry pi.
I’ve following this guide:
Specifically, what I did was:
cd /home/osmc
mkdir scripts
cd scripts
touch bootlog.log
nano bootlog.sh
chmod +x bootlog.sh
The content of bootlog.sh is now:
#!/bin/bash
now=$(date +“%Y %b %d %H:%M:%S”)
echo ^ ^ Booted: $now ^ ^ >> /home/osmc/scripts/bootlog.log
cd /home/osmc/insync-portable
pwd >> /home/osmc/scripts/bootlog.log
./insync-portable start
echo insync started >> /home/osmc/scripts/bootlog.log
exit
And then:
sudo nano /etc/systemd/system/insync.service
[Unit]
Description = A systemboot log
After = mediacenter.service
[Service]
Type = single
ExecStart = /home/osmc/scripts/bootlog.sh
[Install]
WantedBy = multi-user.target
sudo chmod 755 /etc/systemd/system/insync.service
sudo systemctl daemon-reload
sudo systemctl enable insync.service
sudo systemctl start insync
The problem:
The log indicates that something happened…:
^ ^ Booted: 2017 Apr 12 09:04:18 ^ ^
/home/osmc/insync-portable
insync started
But insync is not running. Not with sudo systemctl start insync and not if I reboot the RPi.
If I manually do:
cd /home/osmc/insync-portable
./insync-portable start
This works fine. So for some reason it is not executed the way it’s supposed to.
This is especially frustrating, because I had it working properly for a very long time, recently had to do a fresh OSMC install because of an SD card problem, and now I don’t remeber how I set it up the first time…
Any assistance will be highly appreciated (apologies for the long post, I tried to include as many details as possible to assist with solving this problem). Thanks!