Page 1 of 1

Noob needs help with setting it up as Windows service

Posted: December 25th, 2009, 1:35 pm
by slattynan
Hi Guys, i'm migrating from Ninan to SABnzbd. Seems to be a far more used stable platform with a great community. Congrats with that looking forward to becoming part of it.

I am having trouble setting it up as a service Ii have followed the instructions and think the most likely place for a noob error would be in the registery entried can someone take a look and see if there is an obvious error below:-

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SABnzbd\Parameters]
"AppDirectory"="C:\\Program Files\\SABnzbd"
"Application"="C:\\Program Files\\SABnzbd\SABnzbd.exe"
"AppParameters"="-d -f C:\\Program Files\\SABnzbd\\sabnzbd.ini"

Thanks

Trev aka Slatty

Re: Noob needs help with setting it up as Windows service

Posted: December 26th, 2009, 6:44 am
by shypike
It's incomplete. Did you install svrany?

Code: Select all

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SABnzbd]
"Type"=dword:00000010
"Start"=dword:00000002
"ErrorControl"=dword:00000001
"ImagePath"="C:\\Program Files\\Windows resource kits\\tools\\srvany.exe"
"DisplayName"="SABnzbd"
"ObjectName"=".\\Services"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SABnzbd\Parameters]
"Application"="C:\\Program Files\\SABnzbd\\SABnzbd.exe"
"AppDirectory"="c:\\program files\\SABnzbd"
"AppParameters"="-d -f PATH-TO-INI\\sabnzbd.ini"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SABnzbd\Security]
"Security"=hex:BLABLA

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SABnzbd\Enum]
"0"="Root\\LEGACY_SABNZBD\\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001

Re: Noob needs help with setting it up as Windows service

Posted: December 27th, 2009, 10:43 am
by slattynan
Hi thanks for the response. I added your code into my registery manually to make sure there were no issues, seems to have resloved my issue.

I am still a little uncertain why http://wiki.sabnzbd.org/windows-service didn't work. Perhaps a WHS security issue, although I can't see how.

Also if I have the SABnzbd.ini file in the SABnzbd directory in program files it creates a folder called program and creates a new ini file in there. Easily solved by moving the directory but still a little annoying.

Thanks

Trev

Re: Noob needs help with setting it up as Windows service

Posted: December 27th, 2009, 12:18 pm
by shypike
We're working on making SABnzbd a true Windows service.

Re: Noob needs help with setting it up as Windows service

Posted: December 27th, 2009, 2:00 pm
by slattynan
That would be good, but for now I'm happy :).