3.7. Installing Klaros-Testmanagement as a service

3.7.1. Installing Klaros-Testmanagement as a Linux service
3.7.2. Installing Klaros-Testmanagement as a Windows service

For day to day usage of Klaros-Testmanagement it is necessary that the application is available after a reboot of the machine it is installed on. Depending on the operating, system different measures have to be taken to achieve this.

3.7.1. Installing Klaros-Testmanagement as a Linux service

To start Klaros-Testmanagement automatically the startup script shown below should be saved to the /etc/init.d directory as klaros and selected for the appropriate run level. Please refer to the documentation of your linux distribution for details.

The values of the KLAROS_USER and KLAROS_PATH fields must first be replaced with the intended user id and installation path. It is important that the script is executable. This can be ensured with the command chmod a+x klaros

#!/bin/bash
#
#
# This stuff will be ignored by systems that don't use chkconfig.
# chkconfig: 345 98 2
# description: klaros (inside tomcat, a servlet container)
#
KLAROS_USER=klarosdemo
KLAROS_PATH="/srv/klaros-demo"
/bin/su - "${KLAROS_USER}" -c "${KLAROS_PATH}/bin/catalina.sh $@ >/var/tmp/klaros.log 2>&1"