Re: service tomcat does not support chkconfig

2004-09-04 Thread Big Chiz
it seems that ur using jsvc and copied the tomcat5.sh from the native
folder of jsvc. anyway for chkconfig of rh, i guess it needs some
parameters in the begining of the init script in order to set it up
properly something like the ff

#!/bin/sh
#
# Startup script for the Jakarta Tomcat Java Servlets and JSP server
#
# chkconfig: - 85 15
# description: Jakarta Tomcat Java Servlets and JSP server
# processname: tomcat
# pidfile: /var/run/tomcat.pid
# config:
.. continuation of the script


not like debian where in you can just update-rc.d servicename start x
x x x x stop x x x x, something like that,

On Fri, 3 Sep 2004 09:28:02 -0400, Qi, Xlaoyan [EMAIL PROTECTED] wrote:
 I have trouble to add tomcat(tomcat-5.0.27) as a service in my RHE3.
 Script is like this:
 
 #!/bin/sh
 
 ##
 #
 #   Copyright 2004 The Apache Software Foundation.
 #
 #   Licensed under the Apache License, Version 2.0 (the License);
 #   you may not use this file except in compliance with the License.
 #   You may obtain a copy of the License at
 #
 #   http://www.apache.org/licenses/LICENSE-2.0
 #
 #   Unless required by applicable law or agreed to in writing, software
 #   distributed under the License is distributed on an AS IS BASIS,
 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 implied.
 #   See the License for the specific language governing permissions and
 #   limitations under the License.
 
 ##
 #
 # Small shell script to show how to start/stop Tomcat using jsvc
 # If you want to have Tomcat running on port 80 please modify the
 server.xml
 # file:
 #
 #!-- Define a non-SSL HTTP/1.1 Connector on port 80 --
 #Connector
 className=org.apache.catalina.connector.http.HttpConnector
 #   port=80 minProcessors=5 maxProcessors=75
 #   enableLookups=true redirectPort=8443
 #   acceptCount=10 debug=0 connectionTimeout=6/
 #
 # That is for Tomcat-5.0.x (Apache Tomcat/5.0)
 #
 # Adapt the following lines to your configuration
 JAVA_HOME=/usr/java/j2sdk1.4.2_05
 CATALINA_HOME=/usr/local/jakarta-tomcat-5.0.27/build
 DAEMON_HOME=/usr/local/jakarta-tomcat-5.0.27/bin
 TOMCAT_USER=jakarta
 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-src/native/unix/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
 
 -Original Message-
 From: Didier McGillis [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 03, 2004 9:09 AM
 To: [EMAIL PROTECTED]
 Subject: RE: service tomcat does not support chkconfig
 
 I'm using RHE2, and Tomcat 4, so not totally your situation but I was
 able
 to create and add the startup script to chkconfig without issue.  Could
 it
 be your script?
 
 From: Qi, Xlaoyan [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: service tomcat does not support chkconfig
 Date: Fri, 3 Sep 2004 09:02:21 -0400
 
 I downloaded the tomcat-5.0.27 and it can start fine with startup.sh.
 When I tried to put tomcat.sh to /etc/init.d to add it as a service to
 start up at boot time in my RHE3, It tells me service tomcat does not
 support chkconfig. What could be the problem? Thank you very much for
 your help.
 
 
 
 Cynthia
 
 
 
 
 _
 Designer Mail isn't just fun to send, it's fun to receive. Use special
 stationery, fonts and colors.
 http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU
 =http://hotmail.com/encaHL=Market_MSNIS_Taglines 
   Start enjoying all the benefits of MSN(r) Premium right now and get
 
 
 the
 first two months FREE*.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



service tomcat does not support chkconfig

2004-09-03 Thread Qi, Xlaoyan
I downloaded the tomcat-5.0.27 and it can start fine with startup.sh.
When I tried to put tomcat.sh to /etc/init.d to add it as a service to
start up at boot time in my RHE3, It tells me service tomcat does not
support chkconfig. What could be the problem? Thank you very much for
your help.

 

Cynthia

 



RE: service tomcat does not support chkconfig

2004-09-03 Thread Didier McGillis
I'm using RHE2, and Tomcat 4, so not totally your situation but I was able 
to create and add the startup script to chkconfig without issue.  Could it 
be your script?


From: Qi, Xlaoyan [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: service tomcat does not support chkconfig
Date: Fri, 3 Sep 2004 09:02:21 -0400
I downloaded the tomcat-5.0.27 and it can start fine with startup.sh.
When I tried to put tomcat.sh to /etc/init.d to add it as a service to
start up at boot time in my RHE3, It tells me service tomcat does not
support chkconfig. What could be the problem? Thank you very much for
your help.

Cynthia

_
Designer Mail isn't just fun to send, it's fun to receive. Use special 
stationery, fonts and colors. 
http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines 
 Start enjoying all the benefits of MSN® Premium right now and get the 
first two months FREE*.

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


RE: service tomcat does not support chkconfig

2004-09-03 Thread Didier McGillis
check this out, down near the bottom.
http://www.tldp.org/HOWTO/MMBase-Inst-HOWTO/x184.html

From: Didier McGillis [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: service tomcat does not support chkconfig
Date: Fri, 03 Sep 2004 13:08:58 +
I'm using RHE2, and Tomcat 4, so not totally your situation but I was able 
to create and add the startup script to chkconfig without issue.  Could it 
be your script?


From: Qi, Xlaoyan [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: service tomcat does not support chkconfig
Date: Fri, 3 Sep 2004 09:02:21 -0400
I downloaded the tomcat-5.0.27 and it can start fine with startup.sh.
When I tried to put tomcat.sh to /etc/init.d to add it as a service to
start up at boot time in my RHE3, It tells me service tomcat does not
support chkconfig. What could be the problem? Thank you very much for
your help.

Cynthia

_
Designer Mail isn't just fun to send, it's fun to receive. Use special 
stationery, fonts and colors. 
http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines 
 Start enjoying all the benefits of MSN® Premium right now and get the 
first two months FREE*.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Take advantage of powerful junk e-mail filters built on patented Microsoft® 
SmartScreen Technology. 
http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines 
 Start enjoying all the benefits of MSN® Premium right now and get the 
first two months FREE*.

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


RE: service tomcat does not support chkconfig

2004-09-03 Thread Qi, Xlaoyan
I have trouble to add tomcat(tomcat-5.0.27) as a service in my RHE3.
Script is like this: 


#!/bin/sh

##
#
#   Copyright 2004 The Apache Software Foundation.
#
#   Licensed under the Apache License, Version 2.0 (the License);
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an AS IS BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.

##
#
# Small shell script to show how to start/stop Tomcat using jsvc
# If you want to have Tomcat running on port 80 please modify the
server.xml
# file:
#
#!-- Define a non-SSL HTTP/1.1 Connector on port 80 --
#Connector
className=org.apache.catalina.connector.http.HttpConnector
#   port=80 minProcessors=5 maxProcessors=75
#   enableLookups=true redirectPort=8443
#   acceptCount=10 debug=0 connectionTimeout=6/
#
# That is for Tomcat-5.0.x (Apache Tomcat/5.0)
#
# Adapt the following lines to your configuration
JAVA_HOME=/usr/java/j2sdk1.4.2_05
CATALINA_HOME=/usr/local/jakarta-tomcat-5.0.27/build
DAEMON_HOME=/usr/local/jakarta-tomcat-5.0.27/bin
TOMCAT_USER=jakarta
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-src/native/unix/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

-Original Message-
From: Didier McGillis [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 03, 2004 9:09 AM
To: [EMAIL PROTECTED]
Subject: RE: service tomcat does not support chkconfig

I'm using RHE2, and Tomcat 4, so not totally your situation but I was
able 
to create and add the startup script to chkconfig without issue.  Could
it 
be your script?


From: Qi, Xlaoyan [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: service tomcat does not support chkconfig
Date: Fri, 3 Sep 2004 09:02:21 -0400

I downloaded the tomcat-5.0.27 and it can start fine with startup.sh.
When I tried to put tomcat.sh to /etc/init.d to add it as a service to
start up at boot time in my RHE3, It tells me service tomcat does not
support chkconfig. What could be the problem? Thank you very much for
your help.



Cynthia




_
Designer Mail isn't just fun to send, it's fun to receive. Use special 
stationery, fonts and colors. 
http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU
=http://hotmail.com/encaHL=Market_MSNIS_Taglines 
  Start enjoying all the benefits of MSN(r) Premium right now and get
the 
first two months FREE*.


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


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