Run two instances of sabnzbd as services

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
K1lgoreTr0ut
Newbie
Newbie
Posts: 1
Joined: August 25th, 2012, 10:39 am

Run two instances of sabnzbd as services

Post by K1lgoreTr0ut »

Hi,

I would like to run two independent instances of Sabnzbd. Both of the two should run as service. I have managed to install one Sabnzbd service without a hitch. What I tried to do to achieve my goal was:

1. Installed a second instance of Sabnzbd in a different folder
2. Went through the install-as-service procedure as before
This resulted in updating/modifiying the configuration of the existing service

Second attempt
1. as above
2. Renamed the existing service in the registry
3. Went through the install-as-service procedure as before.
This caused the existing service to stop functioning, and, I was left with one working service only

Third attempt
1. I used nssm (Non Sucking Service Manager) to install the standard app (sabnzbd as service).
This seemed to work but the process graped all the cpu time of one core without any reason.

I hope anyone of you can come up with a better idea. Thank you very much in advance!
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Run two instances of sabnzbd as services

Post by sander »

On http://wiki.sabnzbd.org/command-line-parameters, you can see you can start SABnzbd with a specified config files. So

SABnzbd -f sab-config-1.ini
SABnzbd -f sab-config-2.ini

If they run simultaneously, does that work well? EDIT: You have to point the different instances to different directories, and different listening ports.

You write "service' and "registry", so you must be on Windows, right? If you were on Linux (OSX?) you could use the file /etc/default/sabnzbdplus, in which you specifiy CONFIG= ... . For Windows, I believe you can turn any program into a service, can't you?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Run two instances of sabnzbd as services

Post by shypike »

You cannot run two SABnzbd services at the same time.
It is possible to run multiple instances, just not as a service.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Run two instances of sabnzbd as services

Post by sander »

shypike wrote:You cannot run two SABnzbd services at the same time.
It is possible to run multiple instances, just not as a service.
... even not with http://www.howtogeek.com/50786/using-sr ... s-service/ ?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Run two instances of sabnzbd as services

Post by shypike »

Yes, but then you're not using it as a true service and don't benefit from
the specific support SABnzbd has for services, like the Helper service.
You might as well (or better) run SABnzbd twice as a scheduled task.
Post Reply