The contents of this directory can be used to install Teamscale as a
Linux service. This ensures, Teamscale is automatically restarted on
system reboot.  The installation is based on init.d, which is
supported on most Linux distributions (this guide was tested on Ubuntu
12.04).

To install Teamscale as a service first configure Teamscale and ensure
it can be started normally. Then follow the next steps to install:

1.) Edit the file teamscale.init

1.1.) Enter/edit the correct path to the Teamscale root directory, 
      for example 
      
      TEAMSCALE_HOME=/opt/teamscale
      
1.2.) Enter/edit the correct path to the JDK or JRE installation directory, 
      version 1.8 or better, for example 

      export JAVA_HOME=/opt/jdk

1.3.) Optionally uncomment and fill the EXTRA_START_ARGS line to run the 
      services as a different user.

2.) Install the service by running from the command line:

    sudo ./install-services.sh teamscale

3.) Start the service by running the following command:

    sudo service teamscale start
    
If you later have to uninstall the service run the following command:

    sudo ./uninstall-services.sh teamscale
    
