InstallingTalend Log Server as a service on RedHat/CentOS 7 Systems - 6.5

Talend Data Integration Installation Guide for Linux

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

Before you begin

All the following commands have to be executed with super-user privileges.
Note: You cannot run Elasticsearch as the root user. Elasticseach is part of the Talend Log Server, therefore you cannot run the start_logserver.sh file as root user.

Procedure

  1. Create the service file with the following command:
    touch /etc/systemd/system/Talend-LogServer.service
  2. Assign the relevant rights to the file you created:
    chmod 664 /etc/systemd/system/Talend-LogServer.service
  3. Paste the following content in the file while adapting it to your configuration:
    [Unit]
    Description=Talend Log Server Service
    After=network.target
    
    [Service]
    WorkingDirectory=<LogServerPath>
    ExecStart=/bin/bash start_logserver.sh
    ExecStop=/bin/bash stop_logserver.sh
    Type=simple
    
    [Install]
    WantedBy=default.target
  4. Reload the service daemon:
    systemctl daemon-reload
  5. Start the service:
    systemctl start Talend-LogServer.service