#1
|
|||
|
|||
Run JDownloader (with web interface) as a service
To run JDownloader as a service (written for Win 2k8 R2, but should work on Win2k3, Vista and Win7)
Pre-requisites: instsrv.exe (from Win2k3 resource kit - download from microsoft.com) srvany.exe (from Win2k3 resource kit - download from microsoft.com) JDownloader installed and configured JDownloader web interface installed and configured Optional - create a new admin user called JDownloader, which the service will run as Steps: 1)Place the instsrv.exe and srvany.exe in your JDownloader install directory (for this guide we'll assume the directory is C:\Program Files (x86)\JDownloader) 2)Open a command prompt and type this command: instsrv JDownloader "C:\Program Files (x86)\JDownloader\srvany.exe" 3)Create a .reg file with the following contents: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\JDownloader\Parameters] "Application"="C:\\Program Files (x86)\\JDownloader\\JDownloader.exe" NOTE: those double backslashs are NOT typos! and note the space in the first line in the word services, this is added by vBulletin, edit it out when you copy and paste it. 4)Run the .reg file 5)Open the Services applet (services.msc) and you should see your newly created JDownloader service. Right click this and head to the log on tab and add the user credentials for the JDownloader user you created (optional) 6)Start the service and browse to your web interface URL (default port is 8765) NOTE: if you get a mesage about TOS in the web interface you'll need to stop the service, disable it, log on to Windows as the user the service runs as, go into JDownload proper and accept the TOS there. Finished! If you have any questions about this procedure feel free to ask questions, notice you can use the two executables here to create a uTorrent service too. One more note - Win2k8 R2 ootb has very locked down firewall settings, which prevented me from seeing the web interface on any remote host, you'll need to head into the advanced firewall settings and make changes there to expose the web interface on the network (can't remember the steps, but a quick google on windows firewall should help out). Last edited by unconnected; 15.05.2010 at 21:17. |
#2
|
|||
|
|||
Hello,
Followed your (easy) steps to make jdownloader a service on 2K8R2. but when starting the service, I'm getting the following message: "The JDownloader service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs" Any idea what the problem could be? ps: paths and etc are all the same |
#3
|
|||
|
|||
Found the problem, your reg key string has an extra space between the word "Services"
|
#4
|
|||
|
|||
Can you please explain which are the advantages to start Jdownlaoder as a service against putting a shotcut for it in Startup folder and having it lunched automatically at every system startup?
|
#5
|
|||
|
|||
the webservice use is wonderfull if you have a pc as file server / downloader. Then you don't need an open session to run jdownloader and hence have more free ram for other appliances.
If you don't have a "server" or pc nas then there is not a good use for it |
#6
|
|||
|
|||
Quote:
I'll add a note in my post. And to vpeter - running as a service is perfect when you're running a headless box which doesn't always have someone logged in on, i.e. if you run it from the Startup folder you need to be logged in, as a service, you don't. Plus if for whatever reason it fails, you've got the built in service framework to capture that failure and respond with a set of actions and finally, I can scheduled the service to start and stop based on dynamic issues from other machines on my network (for example, if I start my L4D2 server, it automatically calls all my other bandwidth hogging services on the network and stops them while the server is up). |
#7
|
|||
|
|||
thx very much for your help, unconnected!! exactly what i've been looking for!! till the fabulous developers here integrate it into the software itself :D
good job everyone |
#8
|
|||
|
|||
This is great, does exactly what I want!
Buttt I have a problem trying to get the GUI running once I have started the service on startup. The only way I can get it to work is to stop the service, put it to manual and reboot. This is quite a longwinded method for rearranging a download queue or something. :( I need the service part because I have seriously dodgy power supply issues and seem to be having powercuts every single night (usually right after I go to bed :\). Any ideas how to get the GUI running without having to reboot? |
#9
|
||||
|
||||
Install a Battery Backup (to save your computer, not just JD). Set the Battery Backup to Hibernate your computer after the power has been down for a minute. Set it to restore the computer after the power has been back for 5 minutes.
Sometimes you have to look at the real problem, not just the inconveniences. |
#10
|
|||
|
|||
For anyone finding this while googling, looking for an easier solution, you can easily run JD as a service from PowerShell or Cmd like this:
Code:
choco install nssm nssm install JDownloader "%ProgramFiles%\JDownloader\JDownloader2.exe" nssm start JDownloader You can then control your JD from the browser: https://my.jdownloader.org (Assuming you've entered your My.JDownloader credentials in your JD Settings.) nssm is a widely used lightweight tool to simplify the creation and management of windows services. To check the status, you run: Code:
nssm status JDownloader Code:
nssm stop JDownloader Code:
nssm remove JDownloader confirm |
Thread Tools | |
Display Modes | |
|
|