Starting and Stopping

Starting the Chat Relay

Linux

Execute the startup script:

<INSTALL_PATH>/bin/start.sh

Optional: If you would like the Chat Relay to start when the system boots, then perform the following steps:

    1. Edit the <INSTALL_PATH>/etc/init.d/checkvalvechatrelay script and set the value of the BASEDIR variable

  1. Run the following commands (as root):

cp <INSTALL_PATH>/etc/init.d/checkvalvechatrelay /etc/init.d

insserv checkvalvechatrelay

Windows

Navigate to the <INSTALL_PATH>\bin directory and double-click on the startup.bat file, or execute the startup.bat file from a DOS command prompt.

Advanced Startup Options

The startup scripts for both Linux (start.sh) and Windows (startup.bat) take the following optional command-line arguments:

Command-line options:

--config <file> Read config from <file> [default = checkvalvechatrelay.properties]

--minheap <size> Set the JVM's minimum heap size to <size> [default = 8m]

--maxheap <size> Set the JVM's maximum heap size to <size> [default = 16m]

--debug Enable the Java debugging listener (for use with jdb)

--debughost <ip> IP for jdb connections if debugging is enabled [default = localhost]

--debugport <port> Port for jdb connections if debugging is enabled [default = 1044]

--help Show this help text and exit

Note: For --minheap and --maxheap, the <size> value should be a number followed by "k" for kilobytes, "m" for megabytes, or "g" for gigabytes (Ex: 1048576k, 1024m, 1g).

Stopping the Chat Relay

Linux

Execute the <INSTALL_DIR>/bin/stop.sh script.

Windows

Navigate to the <INSTALL_DIR>\bin directory and double-click on the shutdown.bat file.