LinuxQuestions.org
Register a domain and help support LQ
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-28-2008, 04:11 AM   #1
losintikfos
LQ Newbie
 
Registered: Aug 2008
Posts: 13

Rep: Reputation: 0
Question startup script


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 SSH to do ps -aux to see the job running.

The problem is anytime i log off and login again, the job stops running. Do anyone know how i can keep the job running without stopping?


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!
 
Old 08-28-2008, 05:32 AM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 30
you're looking for the nohup command.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
startup script superraylo Linux - General 1 06-03-2006 04:04 AM
'cannot stat' script in /etc/rc.d/, try to run script at startup quintan Linux - Software 1 11-21-2005 03:53 AM
How to call a script from a system startup script? jonatito Linux - Newbie 7 11-11-2005 10:40 PM
startup script traetox Linux - Networking 3 02-14-2005 07:47 AM
startup script c0c0deuz Linux - Newbie 3 03-29-2003 04:26 PM


All times are GMT -5. The time now is 01:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration