tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Qiao Jin" <bra...@gmail.com>
Subject RE: jsvc problem with PID
Date Sun, 01 Feb 2009 18:03:07 GMT
Could it be that you are running the start-up script (the one using jsvc) as a normal user
and thus does not have the permission to write to /var/run? In my system, CentOS 5, /var/run
can only be written by root. I run my jsvc script as root and use the "-user" option to switch
to a normal user after binding to port 80.  

-Qiao

-----Original Message-----
From: Dave Pawson [mailto:dave.pawson@gmail.com] 
Sent: Sunday, February 01, 2009 5:12 AM
To: Tomcat Users List
Subject: Re: jsvc problem with PID

2009/2/1 Gregor <rc46fi@googlemail.com>:
> are you rumning the startup-script as root?
>
> can u post your startup-script?
>
> rgds
>
> gregor

No. I installed it as a 'normal' user.

Workaround:

case "$1" in
  start)
    #
    # Start Tomcat
    #
    sh $CATALINA_HOME/bin/startup.sh
    ;;

  stop)
    #
    # Stop Tomcat
    #
    sh $CATALINA_HOME/bin/shutdown.sh
    tail $CATALINA_HOME/logs/catalina.out
    ;;

 restart)
    #
    # Restart
    #
    sh $CATALINA_HOME/bin/shutdown.sh
    sh $CATALINA_HOME/bin/startup.sh
    ;;
  *)
    echo "Usage tomcat.sh start/stop"
    exit 1;;
esac


which is nice to know :-)


regards




-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

---------------------------------------------------------------------
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