Dario Novakovic wrote:

> i run tomcat3.2 on linux box and i haven't got much expirience with linux so
> idon't know how to load tomcat on startup and i have to start ti allways
> manualy. i tryed placing startup.sh in rclocal and rcd.3 but it didn't work.
> what is a proper way to make tomcat start everytime my box is booted.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

Do following:
Create a script that will execute (call) startup script for the tomcat in
$TOMCAT_HOME/bin directory.
Try to su to non privileged user prior to running java.
Also make sure that non privileged user does own above directory structure.

Example:
#!/bin/su tomcat
#
# $Id: tomcatd,v 1.1 2000/11/20 15:15:00 sasha Exp $

# Shell script to startup/shutdown the server as a ordinary user

# There are other, simpler commands to startup the runner. The two
# commented commands good replacements. The first works well with
# Java Platform 1.1 based runtimes. The second works well with
# Java2 Platform based runtimes.

#jre -cp runner.jar:servlet.jar:classes org.apache.tomcat.shell.Startup $*
#java -cp runner.jar:servlet.jar:classes org.apache.tomcat.shell.Startup $*

. /home/tomcat/.bashrc

case "$1" in
 start)
 (cd /usr/local/tomcat/bin; ./tomcat.sh start)
 ;;
 stop)
 (cd /usr/local/tomcat/bin; ./tomcat.sh stop)
;;
 *)
 echo "Usage: $0 {start|stop}"
 exit 1
esac





Take care
/s

--

Occupation: Strategic Technical Planning and Advanced Infrastructure Development
Employer: Phone2Networks
Status: Almost there ...
Hobbies: Jogging (when?!), reading, music (dance/trans), sleep deprivation
Currently reading: Foucault's Pendulum by Umerto Eco
Evaluation: Mostly Harmless
--------------------------------------------------------------------




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to