Csanyi Pal <[EMAIL PROTECTED]> writes: > Hi, > > I have installed Tomcat 6 on Debian GNU/Linux Etch using > apache-tomcat-6.0.18.tar.gz in to the /usr/local/apache-tomcat-6.0.18/ > directory. > > I setup in the .bash_profile JAVA_HOME and PATH variables: > > $ echo $JAVA_HOME > /usr/lib/jvm/java-6-sun-1.6.0.07 > > $ echo $PATH > /usr/local/bin:/usr/bin:/bin:/usr/games:/usr/local/\ > apache-tomcat-6.0.18/bin:/usr/lib/jvm/java-6-sun-1.6.0.07/\ > bin:/usr/lib/jvm/java-6-sun-1.6.0.07/bin > > and also in the /etc/profiles file. > > I made symlinks: > > /etc/rcS.d/S97startupTomcat6: > > $ ls -ln S97startupTomcat6 > lrwxrwxrwx 1 0 0 46 2008-11-28 18:50 S97startupTomcat6 -> > /usr/local/apache-tomcat-6.0.18/bin/startup.sh > > and /etc/rc0.d/K89shutdownTomcat6 > > $ ls -ln K89shutdownTomcat6 > lrwxrwxrwx 1 0 0 47 2008-11-28 15:03 K89shutdownTomcat6 -> > /usr/local/apache-tomcat-6.0.18/bin/shutdown.sh > > When I boot the system Tomcat 6 should to start automatically but this > isn't happen. Why?
I find a solution! I created and edited the file: /etc/init.d/tomcat6 changed mode to can run it: sudo chmod +x /etc/init.d/tomcat6 The tomcat6 file: -----------------> #!/bin/sh # /etc/init.d/tomcat6: start Tomcat6 server. test -f /usr/local/apache-tomcat-6.0.18/bin/startup.sh || exit 0 case "$1" in start) export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.07 logger -t Tomcat6 "Starting Tomcat 6..." exec /usr/local/apache-tomcat-6.0.18/bin/startup.sh | logger -t Tomcat6 ;; stop) export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.07 logger -t Tomcat6 "Shutting down Tomcat 6..." exec /usr/local/apache-tomcat-6.0.18/bin/shutdown.sh | logger -t Tomcat6 ;; *) echo "Usage: /etc/init.d/tomcat6 {start|stop}" exit 2 ;; esac exit 0 -----------------< Made a symbolic link: /etc/rcS.d/@S97tomcat6 -> /etc/init.d/tomcat6 I get the messages in /var/log/syslog file. :) -- Regards, Paul Csanyi http://www.freewebs.com/csanyi-pal/index.htm -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]