tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Haluk Durmus <haluk.dur...@gmx.de>
Subject can't run tomcat with jsvc
Date Sun, 02 Jan 2005 20:41:07 GMT
Hello,

I wan't to use Tomcat 5.5.6 as our default Webserver on port 80.
That's why I start it with "jsvc", that should give the chance
to run on prots <1024  for nonroot-user.

I start Tomcat5.sh with root-user (change to tomcat-user):

JAVA_HOME=/usr/lib/java
CATALINA_HOME=/opt/tomcat
DAEMON_HOME=${CATALINA_HOME}/bin/jsvc-src
TOMCAT_USER=tomcat
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 \
    -verbose \
    -debug \
    ;;

  stop)
    #
    # Stop Tomcat
    #
    PID=`cat /var/run/jsvc.pid`
    kill $PID
    ;;

  *)
    echo "Usage tomcat.sh start/stop"
    exit 1;;
esac

but get Error-Message in log file:

jsvc.exec error: syscall failed in set_caps
jsvc.exec error: Service exit with a return value of 4







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


Mime
View raw message