Talend Log Server

Talend Open Studio for ESB Installation and Upgrade Guide

EnrichVersion
6.1
EnrichProdName
Talend Open Studio for ESB
task
Installation and Upgrade

To create a service for Talend Log Server:

  1. Create a script from which Talend Log Server can be run in the directory /etc/init.d/tlogserver, like 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 commands below 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