christian.guyot Posted September 30, 2014 Share Posted September 30, 2014 Hello,The Talend documentation mentions a script filer to be used to install the command line as a service in Linux. I do not find this file in my JasperETL package. Could you indicate where it is located or provide a sample of this file?Thanks, Christian. Link to comment Share on other sites More sharing options...
marianol Posted October 1, 2014 Share Posted October 1, 2014 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 I think there is a bug in the documentation see this: http://community.jaspersoft.com/wiki/running-commandline-or-jobserver-service-non-debian-distributions-version-502-documentation Link to comment Share on other sites More sharing options...
christian.guyot Posted October 1, 2014 Author Share Posted October 1, 2014 Thanks for your anser, but it is scrambled by the HTML formatting... Could you post it in plain text instead? Regards, Christian. Link to comment Share on other sites More sharing options...
marianol Posted October 1, 2014 Share Posted October 1, 2014 Ok now in plain text; I tried to be fancy and it did not work :( Link to comment Share on other sites More sharing options...
christian.guyot Posted October 3, 2014 Author Share Posted October 3, 2014 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 1esacexit 0 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now