To install JobServer as a service, proceed as follows:
Configuring the JobServer parameters
To configure the JobServer parameters that are passed to the Java application, you have to edit the last lines of the jsl_static64.ini file which indicate the path to different files (such as configuration files, .jar files and/or java libraries).
To do so, edit the parameters as shown below:
params = 6 param00 = -cp param01 = <JobServerPath>;<JobServerPath>\lib\jmxremote_optional.jar; <JobServerPath>\lib\log4j-X.X.XX.jar;<JobServerPath>\lib\commons-io-X.X.jar; <JobServerPath>\lib\jsl.jar param02 = -Djava.library.path=<JobServerPath>\jsysmon-XXXXXXXX\native\windows\ param03 = -Dcom.sun.management.jmxremote param04 = -Dtalend_props=<JobServerPath>\conf\TalendJobServer.properties param05 = org.talend.remote.jobserver.service.WindowsJobServer
where <JobServerPath> refers to the installation directory of the JobServer application and X to the version number of the packages. Note that if you installed your Studio using the installer, this path corresponds to <JobServerPath>/agent.
Note that the first parameter indicated is named "param00" and not "param01", and that the use of quotes is not required around strings holding spaces. Note also that every parameter value of the command line must be indicated in a separate parameter.
Installing the service
Open a CMD window in Administrator mode and browse to the conf directory of your JobServer installation directory.
Execute the command:
Stop execution by pressing Ctrl+C.
In the CMD window, execute the following command
The Talend JobServer service is created and can be viewed by selecting Control Panel > Administrative Tools > Services in the Start Menu of Windows.
Note that, when shutting down or rebooting Windows, the JobServer service does not stop. In order to avoid issues during start-up, you need to stop the service before shutting down or rebooting your machine.
To remove the service you can enter the following command in the same command window: