Four Stars

Unable to get command line to start automatically

I have a new installation of TIS 5.2.2 on CentOS 6. I chose to install services durning the automated installer, then used chkconfig to turn all Talend-* services on during run levels 2345. Tomcat, and everything else comes up automatically after a reboot, expect the commandline. I couldn't understand a word the Talend Enterpise support rep was saying through his heavy mouth breathing on the phone, so I'm reaching out to the forums. Please help...it's much appreciated!
3 REPLIES
Moderator

Re: Unable to get command line to start automatically

Hi,
Could you read the document TalendHelpCenter:Example of CommandLine daemon file to launch the Command Line? Our support team are still addressing your issue. Feel free to contact them.(typing may be more better than saying if Poor network quality
for sound)
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: Unable to get command line to start automatically

Thanks for your reply. The support tech sent me the same script, but it isn't working.
Here's what I'm using:
cat /etc/init.d/talend-cmdline
#!/bin/bash
# Basic support for IRIX style chkconfig
###
# chkconfig: 235 98 40
# description: Starts talend components on the server
###
#JAVA_HOME environment variable needs to be set so that all the services can find it and the associated
#class path jars
#check to see if it's already set.
export JAVA_HOME=
if
then
#not set, so set it to a default value
export JAVA_HOME=/usr/local/java/bin
fi
if
then
export TALEND_HOME="/opt/Talend-5.2.2"
fi
#set the command line's home path, which currently is $TALEND_HOME/cmdline
COMMANDLINE_HOME="/opt/Talend-5.2.2/cmdline"
# include the red hat init functions.
if
then
. /etc/rc.d/init.d/functions
fi
#set the return value of the script to 0, which means no error.
RETVAL=0
start() {
# go to command line's home directory and call start_cmdline
# (note: on 64bit JVM, make sure the start_cmdline script calls the correct TIS executable)
echo -n "starting talend commandline server..."
cd $COMMANDLINE_HOME
./start_cmdline.sh
echo " done."
# echo_success
}
stop () {
# shutdown the commandline server by first calling nicely to the
# stop_cmdline script and then terminating the process.
# you can also call the stop_cmdline.sh
echo -n "shutting down talend commandline server..."
cd $COMMANDLINE_HOME
./stop_cmdline.sh
PIDS=`ps aux | grep talend.commandline | awk '{print $2}'`
kill -9 $PIDS > /dev/null 2>&1 < /dev/null
echo " done."
}
restart() {
stop
sleep 3
start
}
reload() {
restart
}
case "$1" in
start)
start
;;
stop)
stop
;;
reload)
reload
;;
restart)
restart
;;
condrestart)
if ; then
restart
fi
;;
status)
echo -n "Checking status of talend commandliner server...."
STATUS=`ps -ef | grep org.talend.commandline | grep -v "grep org.talend.commandline" | wc -l`
if ; then
#all are running.
#echo_success
echo " ok."
else
#not all running.
#echo_failure
echo " failed."
fi
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
RETVAL=3
esac
echo
exit $RETVAL
Moderator

Re: Unable to get command line to start automatically

Hi,
Thanks your response.
Please keep in touch with support team. We are making a investigation on your issue and come back to you asap.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.