Running SABnzbd in daemon mode on D-Link DNS-323

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
DLXXX
Newbie
Newbie
Posts: 3
Joined: May 31st, 2009, 1:26 pm

Running SABnzbd in daemon mode on D-Link DNS-323

Post by DLXXX »

Version: Ex: 0.4.11
OS: Debian Etch (fun_plug)
Install-type: python source
Firewall Software: None
Are you using IPV6? no
Is the issue reproducible? yes

I'm a Linux newbee, so please speak slowly ;-)

- I run Debian Etch under fun_plug on a DNS-323 NAS
- I have installed SABnzbd 0.4.11 by using the python source with the help of a friend
- I run SABnzbd with following command: ./SABnzbd.py
- The script shows a lot of lines and stops at the line : 31/May/2009:19:21:34 HTTP INFO Serving HTTP on http://localhost:8080/
- I go to the browser and it doesnt work
- No other server is active on port 8080.
- When I run it with ./SABnzbd.py -d it also doesn't work

Thanx for your input  :)
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Running SABnzbd in daemon mode on D-Link DNS-323

Post by switch »

Does http://localhost:8080/sabnzbd/ work?

Also, try launching it like so:

Code: Select all

./SABnzbd.py -d -f ~/.sabnzbd/sabnzbd.ini
DLXXX
Newbie
Newbie
Posts: 3
Joined: May 31st, 2009, 1:26 pm

Re: Running SABnzbd in daemon mode on D-Link DNS-323

Post by DLXXX »

YAY  ;D

I killed the current daemon process and started it with your command line: ./SABnzbd.py -d -f ~/.sabnzbd/sabnzbd.ini
Now it works.

Can you explain why it works this way?
It just uses a different ini, but I never even changed the ini yet!
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Running SABnzbd in daemon mode on D-Link DNS-323

Post by shypike »

It's simply the magic required to run a Linux daemon.
I cannot really explain, it's the standard way to do things on Linux.
It involves manipulating I/O streams and forking a child process.
It's all in the source code (SABnzbd.py), if you're interested.
DLXXX
Newbie
Newbie
Posts: 3
Joined: May 31st, 2009, 1:26 pm

Re: Running SABnzbd in daemon mode on D-Link DNS-323

Post by DLXXX »

OK, thanx, I though that the instructions said that it would pull the .ini from the same folder you started your script in.
Apparantly that's not the case, since the ini was there...

Thanx for your help!  8)
krommenek
Newbie
Newbie
Posts: 4
Joined: March 10th, 2011, 3:44 am

Re: Running SABnzbd in daemon mode on D-Link DNS-323

Post by krommenek »

[quote

Code: Select all

./SABnzbd.py -d -f ~/.sabnzbd/sabnzbd.ini
[/quote]

Can anyone tell me what the options -d and -f stand for?

Cheers!
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Running SABnzbd in daemon mode on D-Link DNS-323

Post by shypike »

Post Reply