Page 1 of 1

Run two instances of sabnzbd as services

Posted: August 25th, 2012, 10:53 am
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!

Re: Run two instances of sabnzbd as services

Posted: August 26th, 2012, 1:35 am
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?

Re: Run two instances of sabnzbd as services

Posted: August 26th, 2012, 3:39 am
by shypike
You cannot run two SABnzbd services at the same time.
It is possible to run multiple instances, just not as a service.

Re: Run two instances of sabnzbd as services

Posted: August 26th, 2012, 5:02 am
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/ ?

Re: Run two instances of sabnzbd as services

Posted: August 26th, 2012, 6:57 am
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.