Installing the service on RedHat/CentOS 7 Systems - 7.0

Talend Big Data Platform Installation Guide for Linux

EnrichVersion
7.0
EnrichProdName
Talend Big Data Platform
task
Installation and Upgrade
EnrichPlatform
Talend Activity Monitoring Console
Talend Administration Center
Talend Artifact Repository
Talend CommandLine
Talend Data Preparation
Talend Data Stewardship
Talend DQ Portal
Talend Identity and Access Management
Talend Installer
Talend JobServer
Talend Log Server
Talend Repository Manager
Talend Runtime
Talend SAP RFC Server
Talend Studio

Before you begin

All the following commands have to be executed with super-user privileges.

Procedure

  1. Create the service file with the following command:
    touch /etc/systemd/system/tomcat.service
  2. Assign the relevant rights to the file you created:
    chmod 664 /etc/systemd/system/tomcat.service
  3. Paste the following content in the file while adapting it to your configuration:
    [Unit]
    Description=Apache Tomcat Web Application Container
    After=syslog.target network.target
    
    [Service]
    Type=forking
    
    Environment=JAVA_HOME=/usr/lib/jvm/jre
    Environment=CATALINA_PID=/opt/tomcat/temp/tomcat.pid
    Environment=CATALINA_HOME=/opt/tomcat
    Environment=CATALINA_BASE=/opt/tomcat
    Environment='CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC'
    Environment='JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom'
    
    ExecStart=/opt/tomcat/bin/startup.sh
    ExecStop=/bin/kill -15 $MAINPID
    
    [Install]
    WantedBy=multi-user.target
  4. Reload the service daemon:
    systemctl daemon-reload
  5. Start the service:
    systemctl start tomcat.service