LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-27-2008, 10:30 AM   #1
losintikfos
LQ Newbie
 
Registered: Aug 2008
Posts: 13

Rep: Reputation: 0
running java app. at startup


Hi Experts,

(RedHat)

I am running below execution string in /rc.d/rc.local to load the java app at startup. It works fine! i can login to the server using putty to do ps -aux to see the job running.

The problem is anytime i log off and login again, the job seems to dissapear and hence not running. Do anyone know how i can make this string execute the app and keep running until i decide to stop it?


java -classpath /root/Download/sforceAPi/sforceAPP/lib/postgresql-8.3-603.jdbc3.jar:/root/Download/sforceAPi/sforceAPP/lib/axis2-1.4.jar:/root/Download/sforceAPi/sforceAPP/build/classes/:/root/Download/sforceAPi/sforceAPP/lib/axiom-api-1.2.7.jar:/root/Download/sforceAPi/sforceAPP/lib/axiom-dom-1.2.7.jar:/root/Download/sforceAPi/sforceAPP/lib/axiom-impl-1.2.7.jar:/root/Download/sforceAPi/sforceAPP/lib/xmlbeans-2.3.0.jar:/root/Download/sforceAPi/sforceAPP/lib/wsdl4j-1.6.2.jar:/root/Download/sforceAPi/sforceAPP/lib/XmlSchema-1.4.2.jar:/root/Download/sforceAPi/sforceAPP/lib/log4j-1.2.15.jar:/root/Download/sforceAPi/sforceAPP/lib/commons-logging-1.1.1.jar:/root/Download/sforceAPi/sforceAPP/lib/commons-codec-1.3.jar:/root/Download/sforceAPi/sforceAPP/lib/commons-httpclient-3.1.jar:/root/Download/sforceAPi/sforceAPP/lib/backport-util-concurrent-3.1.jar:/root/Download/sforceAPi/sforceAPP/lib/neethi-2.0.4.jar:/root/Download/sforceAPi/sforceAPP/lib/geronimo-activation_1.1_spec-1.0.1.jar:/root/Download/sforceAPi/sforceAPP/lib/annogen-0.1.0.jar:/root/Download/sforceAPi/sforceAPP/lib/wstx-asl-3.2.4.jar:/root/Download/apache-tomcat-6.0.18/webapps/axis2/WEB-INF/lib/woden-impl-dom-1.0M8.jar:/root/Download/apache-tomcat-6.0.18/webapps/axis2/WEB-INF/lib/woden-api-1.0M8.jar api.sforce.com.Server

Pleaase help!

Last edited by losintikfos; 08-27-2008 at 10:55 AM.
 
Old 08-27-2008, 10:51 AM   #2
losintikfos
LQ Newbie
 
Registered: Aug 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Is it got to do with the way i exit SSH connection to the server?


Experts advice please!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running java app with crontab -e tatarin Linux - General 9 04-07-2008 11:24 PM
Running a Java App on Linux sxa Linux - Software 3 12-09-2004 05:26 PM
unknow app running at startup toddncl Linux - General 1 08-24-2004 04:57 AM
Running an app in startup. fulat2k Mandriva 3 08-09-2004 05:28 PM
help with running a java app Soggy Linux - Software 7 11-20-2003 07:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration