sabnzbd & raspberry pi

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
makem
Newbie
Newbie
Posts: 3
Joined: March 9th, 2014, 12:18 pm

sabnzbd & raspberry pi

Post 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?
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: sabnzbd & raspberry pi

Post by sander »

How do you start sabnzbdplus?

Option 1: as a service
Option 2: login via ssh, type 'sabnzbdplus'
Option 3: ...
makem
Newbie
Newbie
Posts: 3
Joined: March 9th, 2014, 12:18 pm

Re: sabnzbd & raspberry pi

Post by makem »

Option 2

and I closed down the connection! dumb :-[
Last edited by makem on March 9th, 2014, 1:24 pm, edited 2 times in total.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: sabnzbd & raspberry pi

Post 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
makem
Newbie
Newbie
Posts: 3
Joined: March 9th, 2014, 12:18 pm

Re: sabnzbd & raspberry pi

Post 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.
ThisSeatIsTaken
Newbie
Newbie
Posts: 3
Joined: March 11th, 2014, 2:47 pm

Re: sabnzbd & raspberry pi

Post 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...
Post Reply