Page 1 of 1

Problems setting sabnzbd to run as a service!

Posted: April 3rd, 2010, 10:01 am
by tylor
Hi Guys,

I have been following the below guide to try and get sabnzbd to run as a windows service on my Windws 7 Pc.
http://wiki.sabnzbd.org/windows-service

I have managed to setup the service ok but when I then try to access it from a web url redirect I get the page cannot be displayed. Accessing from localhost does work but I am not convinced it is bringing up the correct sab queue, as it was bringing up a move I added/deleted sometime ago!

So for the moment I have reverted to using sabnzbd via the shortcut/.exe file, just wondered if anybod else experienced issues in trying to set this up. Ideally this would allow me to ensure sab would run after a reboot and not automatically launch the webpage upong starting the .exe.

Any suggestions would be greatly appreciated..

Kind Regards
Tylor

Re: Problems setting sabnzbd to run as a service!

Posted: April 3rd, 2010, 11:59 am
by shypike
What data is used, is determined by the -f parameter.
If you run it as a service, it will not try to find the sabnzbd.ini file in the user profile.
Check your "AppParameters".

Re: Problems setting sabnzbd to run as a service!

Posted: April 3rd, 2010, 1:13 pm
by tylor
Apologies, I am still quite new to this so didn't quite follow..

How do I check the parameters, I simply copied the example reg script so I will be using -f
(is there a list I can refer to)?

Also if this is incorrect, could this be stopping me access sabnzbdfrom my redirect url?

Thanks again

Re: Problems setting sabnzbd to run as a service!

Posted: April 3rd, 2010, 3:31 pm
by shypike
The -f points to the sabnzbd.ini file and that also determines
where all relatively specified folders are.
I assume you entered this into the registry:

Code: Select all

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SABnzbd\Parameters]
"AppDirectory"="d:\\bin\\SABnzbd"
"Application"="D:\\bin\\SABnzbd\\SABnzbd.exe"
"AppParameters"="-d -f d:\\MyWorkDir\\sabnzbd.ini"
In the last line it says where SABnzbd should look for the INI file.
You change this by uding the regedit program.
All values above should be modified to match the locations on your system.

When you run it as a service, the web browser cannot be started automatically
and you will have to use a favourite/shortcut.

Re: Problems setting sabnzbd to run as a service!

Posted: April 4th, 2010, 5:47 am
by tylor
Thanks for the info shypike

Much appreciated
:)