summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorErnst de Haan <znerd@FreeBSD.org>2002-02-04 13:40:56 +0000
committerErnst de Haan <znerd@FreeBSD.org>2002-02-04 13:40:56 +0000
commitbafcc62545abbb5380ef08a07c21ad8423bec599 (patch)
tree70822ce9bf78f3b58b68fa99a410a46a85b6f3cb /www
parentNow using tomcatctl instead of tomcat.sh (diff)
Run when deinstalling Tomcat. It will stop Tomcat, if it is running.
Diffstat (limited to 'www')
-rw-r--r--www/jakarta-tomcat/pkg-deinstall8
-rw-r--r--www/jakarta-tomcat3/pkg-deinstall8
-rw-r--r--www/jakarta-tomcat4/pkg-deinstall8
-rw-r--r--www/jakarta-tomcat41/pkg-deinstall8
-rw-r--r--www/tomcat41/pkg-deinstall8
5 files changed, 40 insertions, 0 deletions
diff --git a/www/jakarta-tomcat/pkg-deinstall b/www/jakarta-tomcat/pkg-deinstall
new file mode 100644
index 000000000000..3a3071532612
--- /dev/null
+++ b/www/jakarta-tomcat/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
diff --git a/www/jakarta-tomcat3/pkg-deinstall b/www/jakarta-tomcat3/pkg-deinstall
new file mode 100644
index 000000000000..3a3071532612
--- /dev/null
+++ b/www/jakarta-tomcat3/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
diff --git a/www/jakarta-tomcat4/pkg-deinstall b/www/jakarta-tomcat4/pkg-deinstall
new file mode 100644
index 000000000000..3a3071532612
--- /dev/null
+++ b/www/jakarta-tomcat4/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
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
diff --git a/www/tomcat41/pkg-deinstall b/www/tomcat41/pkg-deinstall
new file mode 100644
index 000000000000..3a3071532612
--- /dev/null
+++ b/www/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