LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   running java app. at startup (https://www.linuxquestions.org/questions/linux-newbie-8/running-java-app-at-startup-665802/)

losintikfos 08-27-2008 10:30 AM

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!

losintikfos 08-27-2008 10:51 AM

Is it got to do with the way i exit SSH connection to the server?


Experts advice please!


All times are GMT -5. The time now is 09:03 AM.