Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Autostart on Raspberry Pi
Upstart script for Raspberry Pi
Using Upstart allows for more advanced features, such as start/stop and automatic restart if it would crash.
sudo apt-get install upstart
Create the Sonarr Upstart config file
sudo nano /etc/init/nzbdrone.conf
Paste in the following code, changing the username (right click if using terminal)
#author "HTPCGuides.com" #description "Upstart Script to run Nzbdrone as a service on Ubuntu/Debian #Set username for the process. Should probably be what you use for logging in setuid pi setgid pi #Set mono directory env MONO=/usr/bin/mono #Set Nzbdrone directory env DIR=/opt/NzbDrone start on runlevel  stop on runlevel  respawn exec $MONO $DIR/NzbDrone.exe
Press Ctrl+X then y to save.
sudo start nzbdrone