Sharing Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Anyone want to see anything else added to the site? Just message Shaitan with your ideas.

Pages: [1]   Go Down

Author Topic: Run SABnzbd as a Windows XP/2003 Service  (Read 858 times)

0 Members and 1 Guest are viewing this topic.

terrabyte

  • Guest
Run SABnzbd as a Windows XP/2003 Service
« on: April 19, 2007, 08:24:25 PM »

This guide was not written by me, I found it here.
http://sourceforge.net/forum/message.php?msg_id=3786242
Works a treat using XP Pro

Setting up SABnzbd as a service in XP/2003 June19/2006...
.......................................
Disclaimer: This requires that you edit your Windows registry,
if you are comfortable doing so then you already know the risks,
and will take reasonable precautions.
If not then heaven can help you, cause I won't.
.......................................
 
 
First, you will need two(2) freely available Microsoft programs in order to set up your service.
- instrv.exe
- Srvany.exe
 
Instsrv.exe is the program used to create a Windows service
Srvany.exe is a program that allows other programs to run as a service.
These files are available from Microsoft's Windows Resource Kit, or from the web
To acquire them you can try here as a starting point, but as MS moves things around so much be prepared to look around on the site
http://www.microsoft.com/windows/reskits/
these files are also mirrored on numerous site around the web, so you can get them elswhere.
 
Remember, ask God first, and then look for a good search engine. One of them is bound to answer.
............................................
 
Assumptions:
I have tested this on 2003(and still running).
 
I have put the extract of SABnzbd in the folder "C:\Program Files\SABnzbd"
I will refer to this directory as the SABnzbd Directory.
If this is not your case just substitute the appropriate Directory..
 
And that you have some idea about paths and directories.
You are familier with registry editing on the windows platform.
 
ok lets try this...
 
Step 1.
Put Instsrv.exe and Srvany.exe in your SABnzbd Directory.
 
Step 2.
From the Start button, go to Run, then type cmd. This will open a command window,
change to your SABnzbd Directory by typing
damn ner anything you want but this might work..
 
c:
then
cd C:\Program Files\SABnzb
then ENTER
 
(if step 2 was hard to follow think about leaving now, understanding paths is important)
 
Step 3.
Ok you made it...
 
Type> instsrv SABnzbd "C:\Program Files\SABnzbd\srvany.exe" and press ENTER.
This creates a service called "SABnzbd". You can use a different service name if you want. but why would you?
 
If the process is successful, you'll see the following message:
 
CreateService SUCCESS at creating: SABnzbd.
 
Step 4.
-Open Regedit by clicking Start->Run, then typing regedit and pressing ENTER.
-Navigate to the following registry key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\SABnzbd
 
Step 5.
-Now we need to tell Windows where, what, and how..
-as in what application and where is it....
 
-In the left pane of the registry window, click on the SABnzbd key.
-Then, in the right pane, right-click and choose NEW -> KEY
Name the key Parameters
 
Step 6.
-In the newly-created Parameters key, right-click and choose NEW -> STRING VALUE
Name the value AppDirectory
 
Step 7.
-In the newly-created Parameters key, right-click and choose NEW -> STRING VALUE
Name the value Application
 
Step 8.
-Double-click on the String Value "AppDirectory". This will bring up the Modify dialog box.
-Set the value for AppDirectory to
C:\Program Files\SABnzbd
 
Step 9.
-Double-click on the String Value "Application".
-Set the value for Application to
C:\Program Files\SABnzbd\SABnzbd.exe
 
Step 10.
-Close Regedit
 
Step 11.
-Open the Services application to modify the service settings
(in XP, Start->Settings->Control Panel,Double click Administrative Tools, Double click Services).
-In Services you should see SABnzbd, double click on it to open its properties.
 
-Set 'Startup type' to Automatic then click on the Log On tab.
-In Log On.. uncheck the box that says "Allow service to interact with desktop".
-It will run fine as a Local System account.
(The security aware will run it under a restricted account, but that is for the paranoid and beyond the scope of this note)
 
Step:12
-You can now click back on the 'General' tab to test the startup of SABnzbd.
-Click the 'start' button and SABnzbd should start up.
 
If it does not, you probably entered something wrong in the registry (path, executable location, etc). Go back
 
through steps 4-10 and make sure all the paths are correct,and watch out for typos.
 
The new SABnzbd service should function as any other system service. If you set it to Automatic, it should
 
always start when the system is booted (and before anyone logs into the system with the rest of the services).
 
Here i have created a reg file voor you to copy paste in to a txt file and saveas .reg
======================================================================================
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"
 
======================================================================================
Pages: [1]   Go Up