Page 1 of 1

sabnzbd & raspberry pi

Posted: March 9th, 2014, 12:28 pm
by makem
I have an instance of sabnzbdplus running on a headless raspberry pi which is running 24/7.

I access the sabnzbdplus wirelessly from an instance of chrome on a laptop and start it downloading a file. I then close chrome and shut down the laptop, leaving sabnzbdplus running on the pi, or so I thought.

When I later accessed the pi I was unable to connect to sabnzbdplus using chrome. I found that sabnzbdplus had shutdown and no further data had been downloaded.

I was under the impression that sabnzbdplus was a separate entity and could be run headless. Is this not so, or do I need to set it up in some way to do so?

Re: sabnzbd & raspberry pi

Posted: March 9th, 2014, 12:58 pm
by sander
How do you start sabnzbdplus?

Option 1: as a service
Option 2: login via ssh, type 'sabnzbdplus'
Option 3: ...

Re: sabnzbd & raspberry pi

Posted: March 9th, 2014, 1:08 pm
by makem
Option 2

and I closed down the connection! dumb :-[

Re: sabnzbd & raspberry pi

Posted: March 9th, 2014, 1:21 pm
by sander
makem wrote:Option 2
Well, yes: as soon as you close the SSH session, sabnzbdplus will stop.

You can avoid that with nohup, but it's better to use Option 1: run sab as a service. See http://wiki.sabnzbd.org/install-ubuntu-repo "How to run as a service"

HTH

Re: sabnzbd & raspberry pi

Posted: March 9th, 2014, 1:31 pm
by makem
Never heard of nohup but will investigate.

I don't often use ngs so have decided to use TightVNC or PuTTy to start an instance using LXTerminal (which I will NOT shutdown!), as and when needed.

As a service it would be wasting processor for the majority of time.

The pi is normally booted by a timer twice in 24 hours for automatic backup, shutting itself down when completed.

When I download I will just allow the pi to run 24 hours. The backups will look after themselves while the download is carried out.

Thanks for the prompt and informative replies.

Re: sabnzbd & raspberry pi

Posted: March 11th, 2014, 2:53 pm
by ThisSeatIsTaken
Just run this, and you can safely log off without shutting sabnzb down.

Code: Select all

sabnzbdplus -d
Alternatively you can run this and it will start up automatically everyting your RPI boots up.

Code: Select all

sudo nano /etc/default/sabnzbdplus
and edit the user variable to this

Code: Select all

USER=pi
Ctrl-O and Ctrl-X to save and exit... Voila, the sabnzb starts on boot...