I am not sure if setting variables like TOMCAT_HOME, JAVA_HOME, and PATH
for all processes and all users in /etc/profile, /etc/bashrc or /etc/csh.cshrc
is such a good idea.  If you want to start up apache/tomcat you can write
yourself a script inside of which you set up environment. (You can use
a script apache-tomcat which I give in my writeup as a starting point:
http://www.ccl.net/cca/software/UNIX/apache/solaris-t3.2b5/README.shtml
http://www.ccl.net/cca/software/UNIX/apache/solaris-t3.2b5/files/apache-tomcat.txt

You can place this script in /etc/rc.d/init.d (it just has to have
start/stop cases, look for examples in this directory) an run chkconfig
(do: man chkconfig, learn about options, and do not forget about putting
# chkconfig: 345 55 45
line close to the top)
This will be starting your apache/tomcat. On the other hand, since it is
my experience that tomcat dies (or goes crazy) on some nasty bugs, it is
probably safer to just start it by hand...  

Jan
[EMAIL PROTECTED]

On Sat, 21 Oct 2000, John P. Donaldson wrote:

> I'm trying to figure out how to set the 
> TOMCAT_HOME, JAVA_HOME, and PATH (for my JDK) without
> having to log in.  I can set them in my .bash_profile
> file and have it work fine, but then they only get set
> once I log in.  What if I want TOMCAT to work without
> logging into my system.  For example, if the system
> should go down and reboot while unattended.  I tried
> setting it in /etc/rc.sysinit, but nothing I put in
> that file seemed to make a difference.  I'm running
> Redhat 7.1, Apache 1.3.14, Tomcat 3.1, and JDK 1.3.0.
> How can I set that stuff without having to log in to
> make them work?
> 
> Any help would be greatly appreciated.
> 
> Thanks,
> John
> [EMAIL PROTECTED]  
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Messenger - Talk while you surf!  It's FREE.
> http://im.yahoo.com/
> 

Jan K. Labanowski            |    phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center    |    Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd,             |    http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163      |    http://www.osc.edu/

Reply via email to