Home > blog > Running Azureus as a windows service revisited

Running Azureus as a windows service revisited

###Step 4: Install the service

*Thanks to info [here][10] and [here][11].*

1. Need to install the programs instsrv.exe and srvany.exe from the [Win2K resource kit][7]. I put in C:\Program Files\reskit
2. Run the following command: C:\Program Files\reskit\INSTSRV.EXE Azureus C:\Program Files\reskit\SRVANY.EXE. This creates a windows service in the “services” control panel applet, and the appropriate registry entry.

####4.1 Edit registry.
1. Go to the new registry key at HKEY_LOCAL_MACHINE\system\CurrentControl\Set\Services\Azureus
2. Create a new key “Parameters” and go there
3. Create the following String Values:
- Application – java
- AppParameters – “-jar -Xrs Azureus2.jar –ui=console” *(NB the -Xrs switch is to stop the the console from shutting down when logged off – not sure if I understand why, but the wiki article says “You’ll then find that whenever someone logs out of the computer, Azureus will stop. That’s because the Java VM is trapping some signals like WM_ENDSESSION, and exits gracefully. You can tell Java to ignore it, with the switch -Xrs, as [documented by Sun][8])*
- AppDirectory – “c:\program files\azureus” (or whatever is appropriate)

####4.1 Edit control panel stuff

1. Go to control panel, administrative tools, services (see image above)
2. Find azureus, double click for properties

1. In the General tab, probably want startup type as automatic
2. In the Log On tab – use “this account” and set up your details. If these don’t match, then what you set up when using the GUI won’t match to the details when running as a service.
3. Tell the service to “start” then test as above

[7]: http://www.tacktech.com/pub/microsoft/service/srvany.zip
[8]: http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html
[10]: http://www.tacktech.com/display.cfm?ttid=197
[11]: http://support.microsoft.com/default.aspx?scid=kb;en-us;137890

Categories: blog Tags: , , ,
  1. April 22nd, 2009 at 11:23 | #1

    Just so you know, I followed these instructions again today with the latest Vuze and everything worked as advertised.

  1. October 22nd, 2008 at 11:16 | #1
CommentLuv Enabled