Installing Talend CommandLine as a service on Ubuntu - 6.5

Talend Real-Time Big Data Platform Installation Guide for Linux

EnrichVersion
6.5
EnrichProdName
Talend Real-Time 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 ESB
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. Go to the /usr/bin directory.
  2. Create a commandline_start file containing the following:
    #!/bin/sh
    cd <CommandLinePath>
    nohup sh commandline-linux.sh&
    Warning: The <CommandLinePath> path should be absolute.
  3. Create a commandline_stop file containing the following:
    #!/bin/sh
    (echo stopServer ; sleep 2) | telnet localhost 8002
  4. Ensure that the two files above are executable. To do this, you can execute the two commands below in the /usr/bin directory:
    chmod +x /usr/bin/commandline_start
    chmod +x /usr/bin/commandline_stop
  5. Paste the <CommandLinePath> /addons/scripts/talend_commandline file into the /etc/init.d directory in order to create the service related to the two executables above.
  6. Make the file executable using:
    chmod +x /etc/init.d/talend_commandline_commandline
  7. Execute the following command:
    update-rc.d talend_commandline_commandline defaults 60