Hello there,
this might sound like a silly question, but I can’t figure out why my stuff still not working:
I’ve got a rasperrypi typ a and want a program (Syncthing) starting on startup. Therefore I wrote a bash script and moved it in /etc/init.d
My Script looks like this:
#!/bin/sh
### BEGIN INIT INFO
# Provides: start_Syncthing.sh
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Start syncthing at boot time
# Description: syncing Fileserver.
### END INIT INFO
/home/pi/syncthing-linux-arm-v0.14.47/syncthing
I make it executable and then I issued
sudo update-rc.d start_Syncthing.sh defaults
but it refuses to work on boot, even something like
sudo service start_Syncthing.sh start
won’t start a syncthing process.
What I’m doing wrong?
So far I only used the Ubuntu GUI for register a startup command.