How to run a program on startup in Debian
<p>I am attempting to run a program that I made on startup on my Raberry Pi 2. It is running Debian (Jessie) but it doesn't seem to work. I tried following this guide: <a href="https://www.debian-administration.org/article/28/Making_scripts_run_at_boot_time_with_Debian" rel="nofollow noreferrer">Debian: Running Scripts on StartUp</a> and creating a system link but nothing seems to be working. The program works when I run it not on startup. Here's the code:</p>
<pre><code>#!/bin/sh
#/etc/init.d/StartGRIP.sh
#

### BEGIN INIT INFO
# Provides:            StartGRIP.sh
# Required-Start:      $local_fs $network
# Required-Stop:       $local_fs
# Default-Start:       2 3 4 5
# Default-Stop:        0 1 6
# Short-Description:   Starts GRIP Pipeline
# Description:         During startup, runs below command and starts GRIP
### END INIT INFO
# Start processing
env LD_LIBRARY_PATH=/home/pi/vision/grip:LD_LIBRARY_PATH java -jar...
</code></pre>
<p>The last command works so I didn't include the whole line as it is a long line.</p>
<p>Any help is greatly appreciated!</p>