Hi,
I have a very basic Mandrake startup script available in the downloads
section at http://willow.cc.edu/docs/adminguide
You may need to edit a few paths, though, as I stupidly put tomcat in the
wrong place. 8o)
I'd be interested in exactly how you end up configuring the startup.
If you don't know how to create a symbolic link then:-
ln -s /etc/rc.d/init.d/tomcat /etc/rc5.d/Sxxtomcat
Where tomcat is the tomcat script and xx is the number directly before
apache's (don't worry about another startup script having the same number)
Sorry if the above was basic, but you said you were a newbie. 8o)
Good luck, keep me posted?
Regards,
Adam.
-----Original Message-----
From: Brett W. McCoy [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 10:20 PM
To: [EMAIL PROTECTED]
Subject: Re: Starting Tomcat
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]