tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose Vicente Nunez Zuleta <jose.nu...@gmail.com>
Subject Re: jsvc problem with PID
Date Sun, 01 Feb 2009 14:27:51 GMT
Hi, not an expert, but if the PID variable is empty or the pid file is  
not there then you will have problems (like when the daemon was killed  
before). Try this:

stop)
     PIDFILE="/var/run/jsvc.pid"
      if [ -f "$PIDFILE" ]; then
           PID=`cat $PIDFILE`
           if [ $? == 0 && ! -z $PID ]; then
                 kill $PID
           fi
      fi



On Feb 1, 2009, at 9:08 AM, Dave Pawson wrote:

> 2009/2/1 Brian Millett <bmillett@gmail.com>:
>
>> Well, I use the jsvc daemon to start my tomcat on fedora 10.   
>> Tomcat 6
>>
>> your mileage will vary, but here is my start stript.
>
>
>> stop)
>>   #
>>   # Stop Tomcat
>>   #
>>   PID=`cat /var/run/jsvc.pid`
>>   kill $PID
>>   ;;
>>
>> *)
>>   echo "Usage tomcat.sh start/stop"
>>   exit 1
>>   ;;
>> esac
>
>
> The stop is just the same as mine.
> [dpawson@marge atom]$ tc stop
> cat: /var/run/jsvc.pid: No such file or directory
> kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec
> ... or kill -l [sigspec]
>
>
>
> Whilst running, is the file found in /var/run Brian?
>
>
> 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