To install CommandLine as a service on 32-bit Windows, follow the procedure below.
For a CommandLine installed on 64-bit Windows, use jsl_static64.exe in place of jsl.exe in the relevant following procedure steps.
Configure JSL as explained in Configuring JSL and .ini file for the CommandLine and JobServer services.
Open a CMD window in Administrator mode.
Change the directory to the CommandLine installation directory.
Type in the following command:
This command debugs the CommandLine service. It starts, you can now check that the <CMDLINE_DATA_DIR>\commandline-workspace directory has been created as well.
Stop execution by pressing Ctrl+C.
The service stops, and the message
In the CMD window, type in the following command:
The CommandLine 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 CommandLine 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.