Installing Talend Log Server as a service on RedHat/CentOS 6 and Ubuntu 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

Procedure

  1. Create a script from which Talend Log Server can be run in the /etc/init.d/tlogserver directory, such as the following:
    #!/bin/sh
    #
    # tlogserver: this script starts and stops the monolithic jar
    #
    # chkconfig: - 85 15
    # description: logstash is an open source log management system.
    # processname: tlogstash
    # config: %%%LOGSERV_CONFIG%%%
    # binary: %%%LOGSERV_JAR%%%
    prog=tlogserver
    PATH=%%%INSTALLDIR%%%/logserv:/sbin:/bin:/usr/sbin:/usr/bin
    NAME=tlogserver
     
    test -x $DAEMON || exit 0
     
    set -e
     
    start() {
            echo -n $"Starting $prog: "
            %%%INSTALLDIR%%%/logserv/start_logserver.sh
    }
     
    stop() {
            echo -n $"Stopping $prog: "
            %%%INSTALLDIR%%%/logserv/stop_logserver.sh
    }
     
     
    case "$1" in
      start)
            start
            ;;
      stop)
            stop
            ;;
      restart)
            stop
            start
            ;;
          *)
                N=/etc/init.d/$NAME
                echo "Usage: $N {start|stop|restart}" >&2
                exit 1
                ;;
        esac
     
        exit 0
    
    
  2. Ensure that the file above is executable. To do this, you can execute the following command in the /etc/init.d/tlogserver directory:
    # chmod +x /etc/init.d/tlogserver
  3. Execute the following command to activate the startup script:
    # update-rc.d tlogserver defaults 60

Results

Filebeat is automatically installed and started as a service.