Page 1 of 1
Sabnzb startup without logging in to windows (WHS)
Posted: August 13th, 2010, 4:56 pm
by Legster
Hey guys,
Been using this for quite some time now and it works without problems, but I do have an annoying problem.
Setup:
------
Windows Homeserver PC in the basement of my house, that runs many automated tasks, including Sabnzbd.
Since this pc is always on , its ideal for SABnzbd and grabs my tv shows right of the internet without a problem..
BUT
this server sometimes autoreboots (when new updates are installed (automaticly)). Then SABNZBD does not run automaticly.
I put it in the STARTUP folder but the problem is that when the server reboots it does ofcourse not login to an user account by itself. This is no problem for many of its uses but it seems that SABNZBD doesnt load itself when there is no manual login, because when i login with remote desktop and log off again 30 secs later sabnzbd works as intended (without manual starting).
Now since the server is unattended for weeks sometimes (since it downloads my shows wich is just watch from my tv with my mediabox en delete with my iphone , thus not needing to go to the server directly) this non automatic start can be a problem. Since my RSS feed only holds my shows for like 10 hours, i noticed that i am getting gaps in my tv shows , and have to watch every day if the server rebooted or not now to make sure sabnzbd is not turned off... well you see my problem.
there any way to get the deamon up and running without actually having to log into the windows account? (other programs installed on my server can do this trick like ftp and SABNZBD auto subtitle downloader).
many thinks in advance for any help :)
Re: Sabnzb startup without logging in to windows
Posted: August 14th, 2010, 4:32 am
by vdown
Re: Sabnzb startup without logging in to windows
Posted: August 14th, 2010, 3:31 pm
by Legster
Thanks for the reply.
I tried those steps but that did not resolve the issue.
Install as a Windows Service
First download the Windows 2003 Resource kit from the Microsoft site and install it.
WAS ALLREADY INSTALLED
Next, assuming that SABnzbd is installed in d:\bin\sabnzbd, do the following steps.
Run in a cmd window:
instsrv SABnzbd "c:\Program Files\Windows Resource Kits\Tools\srvany.exe"
Run in a cmd window:
RESULT: SERVICE ALLREADY INSTALLED (as expected)
install_service.reg || (content see below)
Set dependency, by running in a cmd.exe window:
MADE THE REG FILE AND REPLACED CORRECT PATHS. INSTALL WAS SUCCESSFULL (MANUAL CHECKED REGISTRY)
sc config SABnzbd depend= Tcpip
RESULT WAS SUCCESSFULL
Set a suitable user account for the service "sabnzbd".
SET THE SERVICE TO START WITH THE ADMIN account
Set the service "sabnzbd" to run automatic
DONE
Content of install_service.reg, create a text file containing:
(modify the path to match your setup.)
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SABnzbd\Parameters]
"AppDirectory"="d:\\bin\\SABnzbd"
"Application"="D:\\bin\\SABnzbd\\SABnzbd.exe"
"AppParameters"="-d -f d:\\MyWorkDir\\sabnzbd.ini"
Doing this you can skip running start-up scripts etc.
rebooted the server . still no automatied start though...
any other thoughts?
this the registry screen:
and this the service window (started with local in this test:
highlighted the path cuz its not to the sabnzbd exe but to the service start tool but reccon thats how it need be?
tried with different accounts in the service startup tab, but no matter what i put up the service does not seem to start untill i actually log in to windows .
any more Ideas?
by the way now I notice something weird after doing the above.
When i stop the SABNZBD service sabnzbd just keeps running, remote and on the server ... this leads me to believe that the sabnzbd service dont really do anything anymore?
then i choose shutdown in sabnzbd itself (5.3) it shuts down successfully and then sabnzbd doesnt work anymore, regardless wthat i do with the sabnzbd service...
when i hit sabnzbd.exe from program files it starts everything up again and it works as intended. is there more then one service?
Re: Sabnzb startup without logging in to windows (WHS)
Posted: August 14th, 2010, 4:48 pm
by clobber
Wait, it is even easier than a Windows service. I've added sabnzbd as a Windows Scheduled Task. Just add a scheduled task that kicks off at system start (no logon required). Works for me, no problem. Just had to make sure I cleared the default that says to stop a task if it has been running for 3 days.
Re: Sabnzb startup without logging in to windows (WHS)
Posted: August 15th, 2010, 6:37 am
by Legster
Nice work Clobber, that works for me also perfectly
Thanks alot for the advice !
Now it starts without having to login!
only weird thing still remaining is that the service sabnzbd can be closed without that having any affect on the program, wich leads to believe there another service now that drives the sabnzbd program...
Re: Sabnzb startup without logging in to windows (WHS)
Posted: August 15th, 2010, 11:47 am
by clobber
I dont actually run it as a Windows Service (with all that stuff you did). It sounds like you might be running it both as a service and as a normal application via the Scheduled Task. Just do the scheduled task and delete all that other stuff you did.
Re: Sabnzb startup without logging in to windows (WHS)
Posted: August 16th, 2010, 12:09 pm
by Legster
ah well I am under the impression that every install of sabnzbd needs the service to work correctly?
Re: Sabnzb startup without logging in to windows (WHS)
Posted: August 16th, 2010, 12:42 pm
by clobber
Umm...no. You just run it and it runs as a web page. It does not run as a Windows Service (i.e., administered via services.msc).
Re: Sabnzb startup without logging in to windows (WHS)
Posted: August 16th, 2010, 3:25 pm
by Legster
ah ok my bad
So I removed the service (instsrv SABnzbd remove).
its gone, but can i also delete the parameters map in the registry? ([HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SABnzbd\Parameters]
) or is that allready present in the default installation?
Thanks for the help
Re: Sabnzb startup without logging in to windows (WHS)
Posted: August 17th, 2010, 12:43 am
by clobber
No idea on that one. Did you insert that manually? If so, yeah delete it. If it doesnt work, just reinstall SAB
Re: Sabnzb startup without logging in to windows (WHS)
Posted: August 17th, 2010, 4:52 pm
by Legster
Well was hoping you could see in your registry but I guess it does not really matter either way since all is working now the way I want it
thanks again for the help mateĀ
Re: Sabnzb startup without logging in to windows (WHS)
Posted: January 3rd, 2011, 2:05 pm
by yogoboy1
Does this work, if i have put a password for everytime I start Sabnzbd?