diff options
author | Ernst de Haan <znerd@FreeBSD.org> | 2002-02-04 13:40:56 +0000 |
---|---|---|
committer | Ernst de Haan <znerd@FreeBSD.org> | 2002-02-04 13:40:56 +0000 |
commit | bafcc62545abbb5380ef08a07c21ad8423bec599 (patch) | |
tree | 70822ce9bf78f3b58b68fa99a410a46a85b6f3cb /www/jakarta-tomcat41 | |
parent | Now using tomcatctl instead of tomcat.sh (diff) |
Run when deinstalling Tomcat. It will stop Tomcat, if it is running.
Notes
Notes:
svn path=/head/; revision=54205
Diffstat (limited to 'www/jakarta-tomcat41')
-rw-r--r-- | www/jakarta-tomcat41/pkg-deinstall | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/www/jakarta-tomcat41/pkg-deinstall b/www/jakarta-tomcat41/pkg-deinstall new file mode 100644 index 000000000000..3a3071532612 --- /dev/null +++ b/www/jakarta-tomcat41/pkg-deinstall @@ -0,0 +1,8 @@ +#!/bin/sh +PID_FILE=/var/run/jakarta-tomcat.pid +if [ -e ${PID_FILE} ]; then + echo -n "Jakarta Tomcat is still running." + /bin/kill `cat ${PID_FILE}` + rm -f ${PID_FILE} + echo " Stopped." +fi |