tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: jsvc problem with PID
Date Sun, 01 Feb 2009 14:34:28 GMT
Dave Pawson wrote:
> 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 :-)
> 

Yes, but now you are cheating with respect to your first post.
You are not using jsvc anymore.
And, you are running Tomcat as root, which might be considered insecure.
Which is precisely what jsvc allows you to avoid, in the case where you 
want to run Tomcat as a non-root user, but still have it listen on a 
port < 1024.


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


Mime
View raw message