Page 1 of 1

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

Posted: May 31st, 2009, 2:36 pm
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  :)

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

Posted: May 31st, 2009, 3:15 pm
by switch
Does http://localhost:8080/sabnzbd/ work?

Also, try launching it like so:

Code: Select all

./SABnzbd.py -d -f ~/.sabnzbd/sabnzbd.ini

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

Posted: June 1st, 2009, 6:06 am
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!

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

Posted: June 1st, 2009, 6:40 am
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.

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

Posted: June 1st, 2009, 7:55 am
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)

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

Posted: March 23rd, 2011, 6:42 am
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!

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

Posted: March 23rd, 2011, 6:57 am
by shypike