In a live deployment you would not usually want to stop and start Elixir Repertoire Server manually but will want it to run in the background as a service or daemon when the machine is booted up. The details of how to do this will vary between platforms and will require some system administration knowledge and root privileges.
On Linux or other Unix like systems, you have to modify the startServer.sh file to specific to the Unix platform. On a Windows system, you can use a utility such as the Java Service Wrapper to deploy the server as a Window server service. The bin directory contains an example script. To run Repertoire Server as a Windows service, be sure to copy your server license file into the RepertoireServer\ext directory. For latest information, please read windows-service-readme.txt in the RepertoireServer\bin directory. You may refer to http://wrapper.tanukisoftware.org/ for in-depth discussion of this product.
From Elixir Repertoire Server 8.6.0 onwards, you will be able to install Windows service with a specific version of Java, and run Windows service with JMX (Java Management Extensions) remote connections.
Depending on which type of Windows operating system you are using, run Elixir Repertoire Service.exe (for 32-bit) or Elixir Repertoire Service(64).exe (for 64-bit). In the following examples, we will assume the 64-bit version.
Install Windows service with a specific version of Java:
Copy the JRE folder, which can be "jre6", "jre7", or simply "jre". In this example, we copy the jre6 folder from C:\Program Files\Java\jre6. Paste it into the Repertoire Server installation directory (\RepertoireServer). The JRE folder you pasted must be renamed to jre.
Open a Command Prompt window and locate the RepertoireServer\bin directory.
To install the service, run the following codes:
"Elixir Repertoire Service(64).exe" /install
You only need to run the codes above once. The service will be in the stopped state by default.
To start the service after installation, run the following codes:
"Elixir Repertoire Service(64).exe" /start
Open a browser and connect to http://localhost:8080/
On the Repertoire Server login page, enter the correct username and password. Click Login.
Click Administration > Server to view the specific Java Version, which displays
under the Configuration header. In this example, the Java Version shows
Sun Microsystems Inc. 1.6.0_41
instead of the default Java Version.
Run Windows service with JMX remote connections:
Copy the 64-bit JRE folder. Paste it into the Repertoire Server installation directory (\RepertoireServer). The JRE folder you pasted must be renamed to jre.
Under the Repertoire Server installation directory, go into the \bin directory, and open the Elixir Repertoire Service.exe.vmoptions file. To set the port for JMX remote connections, edit this file by adding the following codes:
-Dcom.sun.management.jmxremote.port=8004 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
Open a Command Prompt window and locate the RepertoireServer\bin directory.
To install the service, run the following codes:
"Elixir Repertoire Service(64).exe" /install
You only need to run the codes above once. The service will be in the stopped state by default.
To start the service after installation, run the following codes:
"Elixir Repertoire Service(64).exe" /start
Execute the jvisualvm.exe file, e.g. from C:\Program Files\Java\jre6\bin directory.
Right-click Local and select Add JMX Connection...
Type localhost:8004 in the Connection field, and click OK.
The 64-bit Windows service is working with JMX remote connections. Similarly, you can get 32-bit Windows service running by using the Elixir Repertoire Service.exe file.
Specific details for running the server as a system service are described on the web at http://www.elixirtech.com/. Choose the Support menu option and check for your specific platform in the online documentation.