Learning why a Shell Script is not run in boot sequence – Troubleshooting in Raspberry Pi Development

What I want to achive

(but did not so far…)

I want a Raspberry Pi to automatically run a slideshow after the boot sequence.

How I thought I’d do that

I have a working shell script that launches the slideshow:

I added a new service to /etc/init.d to be run when the machine boots:

I set the rights for this file to 755 using:

I added the necessary links using update-rc.d as:

What is happening

In the boot sequence the shell script is run as I get a message of the slideshow program fbi stating PathToMyPictures/* loading FAILED.

When I manually start the script using sudo /etc/init.d/MyService start the script is run thus the slideshow shown.

Resources I’ve been using to find an answer (but did not so far)

https://debian-administration.org/article/28/Making_scripts_run_at_boot_time_with_Debian

in German:

Raspberry Pi: Autostart von Programmen einrichten

http://www.forum-raspberrypi.de/Thread-tutorial-automatisches-starten-von-scripte-programme-autostart

I’ll be happy to read your comments and thoughts to get on with my troubleshooting!

Leave a Reply

Your email address will not be published. Required fields are marked *

2 × five =