LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-26-2003, 10:41 PM   #1
peteABK
Member
 
Registered: May 2003
Location: Canada
Distribution: Fedora 13
Posts: 49

Rep: Reputation: 15
starting rmiregistry automatically


Hi, i've been looking for a solution for this for a while now, but I haven't been able to find an answer I've been satisfied with. I'm pretty new to linux so I didn't want to go editing files without asking here first.

I use red hat 9, and I'm trying to do some rmi stuff with java. I've seen that rh9 already has rmiregistry and rmic in the /usr/bin, but I've already installed java. Can I remove rmiregistry and rmic from /urs/bin? also, is there a file I can put a command in that would make rmiregistry start whenever I reboot the computer?

thanks
 
Old 11-27-2003, 01:11 AM   #2
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
Depends. You can remove them, of course, but you might have problems if other programs need them. On the safe side, you can simply move them to another spot, then if something doesn't work, you can pop them back. As long as the spot isn't in your path (anywhere in your /home directory should do) you should be okay. You can use a similar technique for testing most files that you do edit.

For your startup, just add a link in /etc. You should have directories like /etc/rc.d, /etc/rc.0, or something similar. If you're booting into the GUI, then you need to edit rc.5 or whatever, and add a link to start your file. The best way is to look at the examples in those directories. 'cat <filename>' is the way to do it. Basically, it's just a file with the name of the file to run. There's also a number in front to tell you which files are getting run first, which is important if one needs to start before another.
 
Old 11-27-2003, 02:18 PM   #3
peteABK
Member
 
Registered: May 2003
Location: Canada
Distribution: Fedora 13
Posts: 49

Original Poster
Rep: Reputation: 15
Hey thanks for the quick reply,
but I'm still not sure exactly how to do this. I don't usually use the desktop, but I have it installed just in case. So this time I launched it, logged in as root again.

I went to /etc/rc.d/rc3.d/ and created a link to /usr/java/j2sdk1.4.2_02/bin/rmiregistry and named it rmiregistry. I might be an exception, but using cat on other files in that directory didn't really help me much because there are no other links in that directory but when I can the link I created the only fields filled in are the Exec and X-KDE-SubstituteUID which is set to false.

Unfortunately this still does not start the rmiregistry automatically. If there is something I'm doing wrong could you please point it out. Thanks again.
 
Old 11-27-2003, 03:16 PM   #4
peteABK
Member
 
Registered: May 2003
Location: Canada
Distribution: Fedora 13
Posts: 49

Original Poster
Rep: Reputation: 15
sorry that should say "when I cat the link" not "when I can the link"
 
  


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
Stop X from starting automatically dafatdude Linux - Software 1 07-26-2005 09:30 PM
Starting Internet Automatically? grazak Linux - Networking 1 03-27-2005 11:39 PM
not starting automatically ??? JNaas Linux - Networking 0 09-30-2004 07:25 PM
Prevent X from starting automatically Yocal Linux - Newbie 6 08-27-2003 05:31 PM
Starting X Automatically shari Linux - Software 2 08-08-2001 01:11 AM

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

All times are GMT -5. The time now is 07:45 PM.

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