Installing the service on RedHat/CentOS 7 Systems

Talend ESB Installation Guide for Linux

EnrichVersion
6.5
EnrichProdName
Talend ESB
task
Installation and Upgrade
EnrichPlatform
Talend Activity Monitoring Console
Talend Log Server
Talend Data Preparation
Talend Identity and Access Management
Talend Administration Center
Talend Artifact Repository
Talend Studio
Talend Data Stewardship
Talend CommandLine
Talend Installer
Talend Runtime
Talend ESB

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

  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