Page 1 of 1

Sabnzbd as a service

Posted: September 13th, 2014, 12:54 am
by kevindd992002
Why would want one want to install sabnzbd as a service? And is there a disadvantage of doing this in any way?

Re: Sabnzbd as a service

Posted: September 14th, 2014, 12:19 am
by shypike
Automatically started, independent of who is logged in.

Re: Sabnzbd as a service

Posted: September 14th, 2014, 12:53 am
by kevindd992002
shypike wrote:Automatically started, independent of who is logged in.
Ok. Well, I'm looking at this: http://wiki.sabnzbd.org/sabnzbd-as-a-windows-service

It says that it will not use the inf file in the user profile and that makes sense but where would it save its settings? If I install it as a service now, will it copy the current settings? What is the use of the update service?

Re: Sabnzbd as a service

Posted: September 14th, 2014, 4:06 pm
by shypike
You have to explicitly set a location for the INI file.
"Update" means that you can set another location.
Windows stores this info in the registry.

Re: Sabnzbd as a service

Posted: September 14th, 2014, 8:36 pm
by kevindd992002
shypike wrote:You have to explicitly set a location for the INI file.
"Update" means that you can set another location.
Windows stores this info in the registry.
Set another location of what when using the update? The ini file?

If I just go ahead and install the service, it stores all current info in the registry and I don't need to change anything?

Re: Sabnzbd as a service

Posted: September 15th, 2014, 5:33 am
by shypike
kevindd992002 wrote: Set another location of what when using the update? The ini file?
Yes of course.
If I just go ahead and install the service, it stores all current info in the registry and I don't need to change anything?
No, most goes into the INI file.

Because the service is not bound to a user account, SABnzbd cannot store the INI file in a user profile,
therefor you must come up with a location where it can be stored.

Re: Sabnzbd as a service

Posted: September 15th, 2014, 5:57 am
by kevindd992002
shypike wrote:
kevindd992002 wrote: Set another location of what when using the update? The ini file?
Yes of course.
If I just go ahead and install the service, it stores all current info in the registry and I don't need to change anything?
No, most goes into the INI file.

Because the service is not bound to a user account, SABnzbd cannot store the INI file in a user profile,
therefor you must come up with a location where it can be stored.
How do I let it know where the ini file is located?

EDIT: I see that there's a required "path" when installing sab as a service. Is that pertaining to the ini file?

Re: Sabnzbd as a service

Posted: September 15th, 2014, 3:07 pm
by shypike
kevindd992002 wrote: EDIT: I see that there's a required "path" when installing sab as a service. Is that pertaining to the ini file?
Yes

Re: Sabnzbd as a service

Posted: September 15th, 2014, 8:26 pm
by kevindd992002
shypike wrote:
kevindd992002 wrote: EDIT: I see that there's a required "path" when installing sab as a service. Is that pertaining to the ini file?
Yes
Should it be the full path, including the ini file itself or just the directory where that ini is located? So the ini contains all the settings of sab, as in all of them?

Re: Sabnzbd as a service

Posted: September 16th, 2014, 2:18 am
by shypike
The full path to the folder in which the INI file resides
or the full path of the INI file itself.
In the former case the file will get the standard name sabnzbd.ini

Re: Sabnzbd as a service

Posted: September 16th, 2014, 3:10 am
by kevindd992002
shypike wrote:The full path to the folder in which the INI file resides
or the full path of the INI file itself.
In the former case the file will get the standard name sabnzbd.ini
Alright. Correct me if I'm wrong, so I just install sab as a service and specify the location of the ini file and then just overwrite it with the one I currently have to retain the settings?

Re: Sabnzbd as a service

Posted: September 16th, 2014, 4:10 am
by shypike
Yes.

Re: Sabnzbd as a service

Posted: September 16th, 2014, 4:45 am
by kevindd992002
shypike wrote:Yes.
What will this do to the other files (aside from the sabnzbd.ini) in the user appdata folder?

Re: Sabnzbd as a service

Posted: September 16th, 2014, 2:44 pm
by shypike
All admin folders will be placed in the folder that holds the INI file.
You can look all of this up here:
http://wiki.sabnzbd.org/command-line-parameters