Sabnzbd as a service

Feel free to talk about anything and everything in this board.
Post Reply
kevindd992002
Full Member
Full Member
Posts: 211
Joined: October 31st, 2012, 9:35 pm

Sabnzbd as a service

Post by kevindd992002 »

Why would want one want to install sabnzbd as a service? And is there a disadvantage of doing this in any way?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Sabnzbd as a service

Post by shypike »

Automatically started, independent of who is logged in.
kevindd992002
Full Member
Full Member
Posts: 211
Joined: October 31st, 2012, 9:35 pm

Re: Sabnzbd as a service

Post 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?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Sabnzbd as a service

Post 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.
kevindd992002
Full Member
Full Member
Posts: 211
Joined: October 31st, 2012, 9:35 pm

Re: Sabnzbd as a service

Post 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?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Sabnzbd as a service

Post 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.
kevindd992002
Full Member
Full Member
Posts: 211
Joined: October 31st, 2012, 9:35 pm

Re: Sabnzbd as a service

Post 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?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Sabnzbd as a service

Post 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
kevindd992002
Full Member
Full Member
Posts: 211
Joined: October 31st, 2012, 9:35 pm

Re: Sabnzbd as a service

Post 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?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Sabnzbd as a service

Post 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
kevindd992002
Full Member
Full Member
Posts: 211
Joined: October 31st, 2012, 9:35 pm

Re: Sabnzbd as a service

Post 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?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Sabnzbd as a service

Post by shypike »

Yes.
kevindd992002
Full Member
Full Member
Posts: 211
Joined: October 31st, 2012, 9:35 pm

Re: Sabnzbd as a service

Post by kevindd992002 »

shypike wrote:Yes.
What will this do to the other files (aside from the sabnzbd.ini) in the user appdata folder?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Sabnzbd as a service

Post 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
Post Reply