tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mário Gamito <li...@tuxdoit.com>
Subject Re: Start Tomcat as a Linux daemon
Date Wed, 07 Dec 2005 13:23:09 GMT
Hi,

Ok, jsvc is in $CATALINA_HOME/bin

Now, i run the ctl and get this error:

---------------------------------------
[root@sincity init.d]# ./tomcat start
Unable to redirect to /usr/local/apache-tomcat-5.5.12/bin/logs/catalina.out
[root@sincity init.d]# 07/12/2005 13:20:58 6860 jsvc.exec error: Cannot
find daemon loader org/apache/commons/daemon/support/DaemonLoader
07/12/2005 13:20:58 6859 jsvc.exec error: Service exit with a return
value of 1
---------------------------------------

What can it be ?

Any help would be apreciated.

Warm Regards,
Mário Gamito

>>--
>>JAVA_HOME=/usr/local/java
>>CATALINA_HOME=/usr/local/jakarta-tomcat/bin
>>DAEMON_HOME=/usr/local/jakarta-tomcat/bin
>>TOMCAT_USER=root
>>TMP_DIR=/var/tmp
>>CATALINA_OPTS=
>>CLASSPATH=\
>>$JAVA_HOME/lib/tools.jar:\
>>$CATALINA_HOME/bin/commons-daemon.jar:\
>>$CATALINA_HOME/bin/bootstrap.jar
>>
>>case "$1" in
>>start)
>>#
>># Start Tomcat
>>#
>>$DAEMON_HOME/jsvc \
>>-user $TOMCAT_USER \
>>-home $JAVA_HOME \
>>-Dcatalina.home=$CATALINA_HOME \
>>-Djava.io.tmpdir=$TMP_DIR \
>>-outfile $CATALINA_HOME/logs/catalina.out \
>>-errfile '&1' \
>>$CATALINA_OPTS \
>>-cp $CLASSPATH \
>>org.apache.catalina.startup.Bootstrap
>>#
>># To get a verbose JVM
>>#-verbose \
>># To get a debug of jsvc.
>>#-debug \
>>;;
>>
>>stop)
>>#
>># Stop Tomcat
>>#
>>PID=`cat /var/run/jsvc.pid`
>>kill $PID
>>;;
>>
>>*)
>>echo "Usage tomcat.sh start/stop"
>>exit 1;;
>>esac
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message