Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am trying to write a shell script to load JAVA_HOME at startup. Can someone tell me how to go about it? and which directory i should place my script in to run at startup.
JAVA_HOME is more like an environment variable for users, placing this in an rc.local or startup script isn't going to do anything for you. You should place this in the global /etc/profile or in each users individual .bash_profile or .bashrc.
And next time use a more descriptive thread title, "Help [URGENT]" doesn't describe your problem and members here help people like you in their own free time, you're issue is no more important than the next members so don't tag threads as urgent.
trickykid i absolutly take your advice - won't happen again. also i think what you saying is right! .bashrc will do the trick for the enviromental variable setting - very please with that.
Quick question! do you have any sample script that will execute java class at startup?
!
for example java -classpath /root/Download/sforceAPi/sforceAPP/ Server.class
Quick question! do you have any sample script that will execute java class at startup?
!
for example java -classpath /root/Download/sforceAPi/sforceAPP/ Server.class
That you could probably place in the rc.local script usually found in /etc/init.d or /etc/rc.d, depending on what OS you are using and where the startup scripts are located.
Sorry, the readahead.early.files is just a sanity check which I like to add startup scripts to, etc. To have rc.loop start, you have to create a script to invoke it as well. You can add it to rc.local but it's probably better to have it's own so it's independent from rc.local
Like rc.local is called by S99local usually in each rcX.d directory in /etc/rc.d
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.