Jump to content
We've recently updated our Privacy Statement, available here ×

Where is the script "tis_commandline" described in the TalendEnterprise_DataIntegration_IG_5.4.1_EN section 5.2.2


christian.guyot

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Essentially the files you need to add in etc/init.d are:

 

commandline_start:

 

#!/bin/sh

cd <CommandLinePath>

nohup sh commandline-linux.sh&

 

commandline_stop:

 

#!/bin/sh

(echo stopServer ; sleep 2) | telnet localhost 8002

 

The "commanline-linux.sh" is part of the JETL Studio Distribution since the Commad Line Server is essentialy a headless JETL Studio. The contentos of that file should be similar to this:

 

./JETLPlus-linux-gtk-x86 -nosplash -application org.talend.commandline.CommandLine -consoleLog -data commandline-workspace startServer -p 8002

 


Link to comment
Share on other sites

Hello Marianol,

Thanks but I do have the stop/start scripts in place in the /home/ec2-user/Jaspersoft-5.4.1/ for jac/cmdline/jobserver... installed by the auto-installer.

What I was missing was the script to add in the /etc/init.d/. With some search I found how to create it. It is now in place and seems to be working nicely. I attach it below.

By the way, I had to activate the httpd service as well to have the svn server started.

Regards, Christian.


[root@ip]# cat /etc/init.d/jasperetl

#! /bin/sh

# Script used to manage the Jasper ETL as a service

###

# chkconfig: 2345 98 55

# description: Manages the services jasperetl

###

case "$1" in

  start)

   echo "Start jasperetl service ..."

   cd /home/ec2-user/Jaspersoft-5.4.1/jac/

   ./start_jac.sh

   RETVAL=$?

   [ $RETVAL -eq 0 ] && echo "   jac start success"

   [ $RETVAL -ne 0 ] && echo "   jac start failure"

   cd /home/ec2-user/Jaspersoft-5.4.1/cmdline/

   ./start_cmdline.sh

   RETVAL=$?

   [ $RETVAL -eq 0 ] && echo "   cmdline start success"

   [ $RETVAL -ne 0 ] && echo "   cmdline start failure"

   cd /home/ec2-user/Jaspersoft-5.4.1/jobserver/

   ./start_jobserver.sh

   RETVAL=$?

   [ $RETVAL -eq 0 ] && echo "   jobserver start success"

   [ $RETVAL -ne 0 ] && echo "   jobserver start failure"

   echo "."

   ;;

  stop)

   echo "Stop jasperetl service ..."

   cd /home/ec2-user/Jaspersoft-5.4.1/jac/

   ./stop_jac.sh

   RETVAL=$?

   [ $RETVAL -eq 0 ] && echo "   jac stop success"

   [ $RETVAL -ne 0 ] && echo "   jac stop failure"

   cd /home/ec2-user/Jaspersoft-5.4.1/cmdline/

   ./stop_cmdline.sh

   RETVAL=$?

   [ $RETVAL -eq 0 ] && echo "   cmdline stop success"

   [ $RETVAL -ne 0 ] && echo "   cmdline stop failure"

   cd /home/ec2-user/Jaspersoft-5.4.1/jobserver/

   ./stop_jobserver.sh

   RETVAL=$?

   [ $RETVAL -eq 0 ] && echo "   jobserver stop success"

   [ $RETVAL -ne 0 ] && echo "   jobserver stop failure"

   echo "."

   ;;

  status)

   echo "Checking status of jasperetl server ..."

   STATUS=`ps -ef | grep jac | grep -v "grep jac"  | wc -l`

   if [ ${STATUS} -gt 0 ]; then

    echo "   jac running."

   else

    echo "   jac not running."

   fi

   STATUS=`ps -ef | grep org.talend.commandline | grep -v "grep org.talend.commandline"  | wc -l`

   if [ ${STATUS} -gt 0 ]; then

    echo "   cmdline running."

   else

    echo "   cmdline not running."

   fi

   STATUS=`ps -ef | grep org.talend.remote.jobserver.server.TalendJobServerMain | grep -v "grep org.talend.remote.jobserver.server.TalendJobServerMain"  | wc -l`

   if [ ${STATUS} -gt 0 ]; then

    echo "   jobserver running."

   else

    echo "   jobserver not running."

   fi

   ;;

  *)

   echo "Usage: /sbin/service jasperetl {start|stop|status}"

   exit 1

esac

exit 0

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...