<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Init Scripts in Installing and Upgrading</title>
    <link>https://community.qlik.com/t5/Installing-and-Upgrading/Init-Scripts/m-p/2358503#M1875</link>
    <description>Sorry about the lack of detail. I have only had a few min. to work on this issue. The version is probably the TOS version. The developers told me there was no paid support and sent me a nicely done pdf with installation instructions. In the manual there are three init scripts. The commandline.sh init script is the one I am working on at the moment. 
&lt;BR /&gt;#!/bin/sh 
&lt;BR /&gt;### BEGIN INIT INFO 
&lt;BR /&gt;# Default-Start: 2 3 4 5 
&lt;BR /&gt;# Default-Stop: S 0 1 6 
&lt;BR /&gt;# Short-Description: Example initscript 
&lt;BR /&gt;# Description: This file should be used to construct scripts to be 
&lt;BR /&gt;# placed in /etc/init.d. 
&lt;BR /&gt;### END INIT INFO 
&lt;BR /&gt;# Author: jsd03 
&lt;BR /&gt;# Do NOT "set -e" 
&lt;BR /&gt;# PATH should only include /usr/* if it runs after the mountnfs.sh script 
&lt;BR /&gt;PATH=/usr/sbin:/usr/bin:/sbin:/bin 
&lt;BR /&gt;#COMMANDLINE=/oa/TIS/commandline303 
&lt;BR /&gt;COMMANDLINE=/usr/pservices/springsource/tcServer-6.0/Talend/CommandLine/ 
&lt;BR /&gt;CMD_WORKSPACE=$COMMANDLINE"/commandline-workspace" 
&lt;BR /&gt;STARTUP=commandline.sh 
&lt;BR /&gt;USER=webopt 
&lt;BR /&gt;NAME=commandline 
&lt;BR /&gt;PORT=10004 
&lt;BR /&gt;# Read configuration variable file if present 
&lt;BR /&gt; &amp;amp;&amp;amp; . /etc/default/$NAME 
&lt;BR /&gt;# Load the VERBOSE setting and other rcS variables 
&lt;BR /&gt; &amp;amp;&amp;amp; . /etc/default/rcS 
&lt;BR /&gt;# Define LSB log_* functions. 
&lt;BR /&gt;# Depend on lsb-base (&amp;gt;= 3.0-6) to ensure that this file is present. 
&lt;BR /&gt;. /lib/lsb/init-functions 
&lt;BR /&gt;# 
&lt;BR /&gt;# Function that starts the daemon/service 
&lt;BR /&gt;# 
&lt;BR /&gt;do_start() 
&lt;BR /&gt;{ 
&lt;BR /&gt;echo -n $"Starting commandline service: " 
&lt;BR /&gt;su - $USER -c "rm -Rf $CMD_WORKSPACE" 
&lt;BR /&gt;su - $USER -c "cd $COMMANDLINE &amp;amp;&amp;amp; screen -dmS cmdLine ./$STARTUP" 
&lt;BR /&gt;#screen -dmS cmdLine $DAEMON_START 
&lt;BR /&gt;RETVAL=$? 
&lt;BR /&gt;echo 
&lt;BR /&gt;} 
&lt;BR /&gt;# 
&lt;BR /&gt;# Function that stops the daemon/service 
&lt;BR /&gt;# 
&lt;BR /&gt;do_stop() 
&lt;BR /&gt;{ 
&lt;BR /&gt;echo -n $"Stopping commandline service: " 
&lt;BR /&gt;su - $USER -c "( echo 'stopServer' ; sleep 2 ) | telnet localhost $PORT" 
&lt;BR /&gt;RETVAL=$? 
&lt;BR /&gt;echo 
&lt;BR /&gt;} 
&lt;BR /&gt;case "$1" in 
&lt;BR /&gt;start) 
&lt;BR /&gt;do_start 
&lt;BR /&gt;;; 
&lt;BR /&gt;stop) 
&lt;BR /&gt;do_stop 
&lt;BR /&gt;;; 
&lt;BR /&gt;*) 
&lt;BR /&gt;echo $"Usage: $0 {start|stop}" 
&lt;BR /&gt;exit 1 
&lt;BR /&gt;esac 
&lt;BR /&gt;exit 0 
&lt;BR /&gt;I appreciate the script, but when it starts the process runs until I logout. The stop script gives an error message: connection refused. 
&lt;BR /&gt;I go to the talend directory and cat the commandline -sh and it reads: 
&lt;BR /&gt;./TalendDataQuality-linux-gtk-x86 -nosplash -application org.talend.commandline.CommandLine -consoleLog -data cworkspace startServer -p 8002 
&lt;BR /&gt;I assume that means it is starting on port 8002. 
&lt;BR /&gt;This is as far as I have gotten trying to figure out what is going on. I am on a tight time schedule and this came in ad hoc so I have not had time to dive into the issues. So I was hoping someone that had it working would post it so I could get this working immediatly and work on the details later.</description>
    <pubDate>Fri, 10 Dec 2010 21:05:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-12-10T21:05:10Z</dc:date>
    <item>
      <title>Init Scripts</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/Init-Scripts/m-p/2358501#M1873</link>
      <description>I am a system's administor for an insurance company. Some developers threw over the wall the responsibility to create 3 init scripts for components of Talend SW. I have no idea what your software does. I will be investigating it over the next few days, but in the meantime I was wondering if someone had written a known working init script that works on RHEL 5. I read the manual and saw the example in the guide. I started with commandline.sh. I got the service running, but it logs out when I log out and the stop function fails to connect to the port listed in the example script. The port is listed in the script as 10004. I was looking through the code and it looks like when the program starts it uses 8002 (I think). All these things can be solved, but it takes time and I am short on time. So I was wondering if someone had a working script I could use while I learn about Talend.</description>
      <pubDate>Sat, 16 Nov 2024 13:11:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/Init-Scripts/m-p/2358501#M1873</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Init Scripts</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/Init-Scripts/m-p/2358502#M1874</link>
      <description>Hello 
&lt;BR /&gt;I don't understand your request well, are you using TOS or paid subscription TIS? Do you want to install the commandline as service? 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 09 Dec 2010 03:03:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/Init-Scripts/m-p/2358502#M1874</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-09T03:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Init Scripts</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/Init-Scripts/m-p/2358503#M1875</link>
      <description>Sorry about the lack of detail. I have only had a few min. to work on this issue. The version is probably the TOS version. The developers told me there was no paid support and sent me a nicely done pdf with installation instructions. In the manual there are three init scripts. The commandline.sh init script is the one I am working on at the moment. 
&lt;BR /&gt;#!/bin/sh 
&lt;BR /&gt;### BEGIN INIT INFO 
&lt;BR /&gt;# Default-Start: 2 3 4 5 
&lt;BR /&gt;# Default-Stop: S 0 1 6 
&lt;BR /&gt;# Short-Description: Example initscript 
&lt;BR /&gt;# Description: This file should be used to construct scripts to be 
&lt;BR /&gt;# placed in /etc/init.d. 
&lt;BR /&gt;### END INIT INFO 
&lt;BR /&gt;# Author: jsd03 
&lt;BR /&gt;# Do NOT "set -e" 
&lt;BR /&gt;# PATH should only include /usr/* if it runs after the mountnfs.sh script 
&lt;BR /&gt;PATH=/usr/sbin:/usr/bin:/sbin:/bin 
&lt;BR /&gt;#COMMANDLINE=/oa/TIS/commandline303 
&lt;BR /&gt;COMMANDLINE=/usr/pservices/springsource/tcServer-6.0/Talend/CommandLine/ 
&lt;BR /&gt;CMD_WORKSPACE=$COMMANDLINE"/commandline-workspace" 
&lt;BR /&gt;STARTUP=commandline.sh 
&lt;BR /&gt;USER=webopt 
&lt;BR /&gt;NAME=commandline 
&lt;BR /&gt;PORT=10004 
&lt;BR /&gt;# Read configuration variable file if present 
&lt;BR /&gt; &amp;amp;&amp;amp; . /etc/default/$NAME 
&lt;BR /&gt;# Load the VERBOSE setting and other rcS variables 
&lt;BR /&gt; &amp;amp;&amp;amp; . /etc/default/rcS 
&lt;BR /&gt;# Define LSB log_* functions. 
&lt;BR /&gt;# Depend on lsb-base (&amp;gt;= 3.0-6) to ensure that this file is present. 
&lt;BR /&gt;. /lib/lsb/init-functions 
&lt;BR /&gt;# 
&lt;BR /&gt;# Function that starts the daemon/service 
&lt;BR /&gt;# 
&lt;BR /&gt;do_start() 
&lt;BR /&gt;{ 
&lt;BR /&gt;echo -n $"Starting commandline service: " 
&lt;BR /&gt;su - $USER -c "rm -Rf $CMD_WORKSPACE" 
&lt;BR /&gt;su - $USER -c "cd $COMMANDLINE &amp;amp;&amp;amp; screen -dmS cmdLine ./$STARTUP" 
&lt;BR /&gt;#screen -dmS cmdLine $DAEMON_START 
&lt;BR /&gt;RETVAL=$? 
&lt;BR /&gt;echo 
&lt;BR /&gt;} 
&lt;BR /&gt;# 
&lt;BR /&gt;# Function that stops the daemon/service 
&lt;BR /&gt;# 
&lt;BR /&gt;do_stop() 
&lt;BR /&gt;{ 
&lt;BR /&gt;echo -n $"Stopping commandline service: " 
&lt;BR /&gt;su - $USER -c "( echo 'stopServer' ; sleep 2 ) | telnet localhost $PORT" 
&lt;BR /&gt;RETVAL=$? 
&lt;BR /&gt;echo 
&lt;BR /&gt;} 
&lt;BR /&gt;case "$1" in 
&lt;BR /&gt;start) 
&lt;BR /&gt;do_start 
&lt;BR /&gt;;; 
&lt;BR /&gt;stop) 
&lt;BR /&gt;do_stop 
&lt;BR /&gt;;; 
&lt;BR /&gt;*) 
&lt;BR /&gt;echo $"Usage: $0 {start|stop}" 
&lt;BR /&gt;exit 1 
&lt;BR /&gt;esac 
&lt;BR /&gt;exit 0 
&lt;BR /&gt;I appreciate the script, but when it starts the process runs until I logout. The stop script gives an error message: connection refused. 
&lt;BR /&gt;I go to the talend directory and cat the commandline -sh and it reads: 
&lt;BR /&gt;./TalendDataQuality-linux-gtk-x86 -nosplash -application org.talend.commandline.CommandLine -consoleLog -data cworkspace startServer -p 8002 
&lt;BR /&gt;I assume that means it is starting on port 8002. 
&lt;BR /&gt;This is as far as I have gotten trying to figure out what is going on. I am on a tight time schedule and this came in ad hoc so I have not had time to dive into the issues. So I was hoping someone that had it working would post it so I could get this working immediatly and work on the details later.</description>
      <pubDate>Fri, 10 Dec 2010 21:05:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/Init-Scripts/m-p/2358503#M1875</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-10T21:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Init Scripts</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/Init-Scripts/m-p/2358504#M1876</link>
      <description>Hi echeadle.
&lt;BR /&gt;In fact you're using a paid version since you're trying to start "TalendDataQuality-linux-gtk-x86" which is definately not part of TOS (just like the CommandLine also). So it means that you have a valid license and you can open a ticket to the support. They will probably give you scripts that works on REHL.</description>
      <pubDate>Fri, 10 Dec 2010 21:33:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/Init-Scripts/m-p/2358504#M1876</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-10T21:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Init Scripts</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/Init-Scripts/m-p/2358505#M1877</link>
      <description>Thank you for the information.   I will go back and talk to the developers and find out what is going on.</description>
      <pubDate>Fri, 10 Dec 2010 22:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/Init-Scripts/m-p/2358505#M1877</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-10T22:27:18Z</dc:date>
    </item>
  </channel>
</rss>

