On Mon, 26 Feb 2001, Ferdinand Enario wrote:
> I am new to tomcat. I have just installed tomcat on Linux Mandrake 7.1 with
> Apache on it. I was able to configure this:
> http://localhost/examples/jsp/index.html My problem now is how do I start
> tomcat automatically before Apache starts (auto load on machine boot).
> Please help.
You should look under /etc/rc.d/init.d and take a look at the startup
scripts used for starting the various daemons used on your system. You
will find directories under /etc/rc.d with names like rc1.d, rc2.d, rc3.d
, where the number indicates the runlevel you are running Linux under --
probably runlevel 5, if you boot directly into X rather than the console,
so you would want to use /etc/rc.d/rc5.d.
You will want to create a script that starts up tomcat -- use the apache
script as a template. Place this script in /etc/rc.d/init.d, and make a
symbolic link under /etc/rc5.d, but the link has a special form of
S##<scriptname>, where ## is a number in sequence for start up. So if
apache starts up as S75httpd, you will want to make tomcat start up as
S74tomcat, to insure tomcat starts up before Apache.
Please see the man page for init for more information pointing to startup
scripts and runlevels.
-- Brett
http://www.chapelperilous.net/~bmccoy/
---------------------------------------------------------------------------
Do you know Montana?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]