LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   starting rmiregistry automatically (https://www.linuxquestions.org/questions/linux-newbie-8/starting-rmiregistry-automatically-120344/)

peteABK 11-26-2003 10:41 PM

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

scott_R 11-27-2003 01:11 AM

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.

peteABK 11-27-2003 02:18 PM

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.

peteABK 11-27-2003 03:16 PM

sorry that should say "when I cat the link" not "when I can the link"


All times are GMT -5. The time now is 05:42 AM.