-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

dwa,

(Boy, nobody has a name, today...)

dwa wrote:
> so my path and global vars are correct -> or?
> i want to start in runlevel2 and so ive a softlink in
> /etc/rc2.d/S99catalina -> /opt/tomcat/bin....

What does /etc/rc2.d/S99catalina point to? You didn't finish your path.
Does that file exist? Does it have execute permissions?

Are you sure you want to run Tomcat as root? (hint: the answer is "no")

> my /etc/environment

I don't know anything about Debian. Does /etc/environment have any
meaning? Is this file source'd by startup tasks before they execute? If
not, then JAVA_HOME, etc. aren't being set at all.

Try writing a wrapper script around startup.sh. Something like this:

#!/bin/sh
LOGFILE=/var/log/tomcat-startup.log
TOMCAT_STARTUP=/opt/tomcat/bin/...
echo "============================" >> ${LOGFILE}
echo "Attempting to startup Tomcat" >> ${LOGFILE}
date >> ${LOGFILE}
echo "============================" >> ${LOGFILE}
env >> ${LOGFILE}
echo "Executing ${TOMCAT_STARTUP}" >> ${LOGFILE}
${TOMCAT_STARTUP} > ${LOGFILE} 2>&1
echo "============================" >> ${LOGFILE}
echo "Completed Tomcat startup." >> ${LOGFILE}
echo "Startup script returned: $?" >> ${LOGFILE}
echo "============================"

Then you can see if all your environment variables are being set when
you try to startup. You'll also get the return value of the startup
script and any warning or error messages that the startup script spits out.

That should get you started.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGuJki9CaO5/Lv0PARAt4XAJ4hQNmA7xi1IfAdy+rhUjH23GX6xACgp/Xu
JRLn2cwqjXDawwuOfhijABw=
=qTrY
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to