Cheap Dedicated Server -Install Slave as a Windows service (cmd version)

Install Slave as a Windows service (cmd version)

In a cmd execute the following command:
 sc.exe create HudsonSlave binPath= "C:\WINDOWS\system32\java.exe -jar C:\hudson\slave.jar
-jnlpUrl http://SERVER:PORT/computer/MACHINE/slave-agent.jnlp" start= auto

This is a very simple version, you can elaborate start scripts which use some program to hide the CMD window, select the good server and try to ping it, get the MACHINE variable with %computername% ,etc...
Unknown macro: {error}

This information is false. Service created like this will never report back their status to Windows service manager, so the service will reported as not responding and gets terminated. If you have done this, run "sc delete HudsonSlave" to delete the service created.

Changing the configuration of services:
The JVM launch parameters of these Windows services are controlled by an XML file hudson.xml and hudson-slave.xml respectively. These files can be found in $HUDSON_HOME and in the slave root directory respectively, after you've install them as Windows services.

The file format should be self-explanatory. Tweak the arguments for example to give JVM a bigger memory.

Stdout and stderr from the service processes go to log files in the same directory.

Uninstallation:
To uninstall the service, run hudson-slave.exe uninstall from the command line.

-To go Cheap Dedicated Server to visit www.interserver.net. It as the best
Cheap VPS website.
Cheap Dedicated Server -Install Slave as a Windows service (cmd version) Cheap Dedicated Server -Install Slave as a Windows service (cmd version) Reviewed by Cheap VPS on 02:47 Rating: 5

No comments:

Powered by Blogger.