summaryrefslogtreecommitdiff
diff options
authorSylvain Pineau <sylvain.pineau@canonical.com>2020-07-14 13:31:30 +0200
committerSylvain Pineau <sylvain.pineau@canonical.com>2020-07-14 13:31:30 +0200
commit4584223c209020d006276324decc538b313b50b6 (patch)
tree3806861e6b3698c1653376cea94c40231a35393e
parent0e15af9e23bf05da3217b88987be30f8118526f0 (diff)
bin:tomcat_test: Deleted
-rwxr-xr-xbin/tomcat_test24
1 files changed, 0 insertions, 24 deletions
diff --git a/bin/tomcat_test b/bin/tomcat_test
deleted file mode 100755
index 70cdb8c..0000000
--- a/bin/tomcat_test
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-#
-# Confirm Tomcat server is running and working properly
-# Requires: tomcat6
-#
-
-# Check tomcat is running
-run1=`netstat -ltnp | grep '8080' | grep 'java'`
-if [ -z "$run1" ]; then
- echo "FAIL: Tomcat is not running."
- exit 1
-fi
-
-# Check if Tomcat is working; requires network connection so check it
-check=`ping -c 2 www.ubuntu.com |grep "2 received"`
-if [ -n "$check" ]; then
- work1=`w3m http://127.0.0.1:8080 | grep "works"`
- if [ -z "$work1" ]; then
- echo "FAIL: Tomcat is not working properly."
- exit 1
- fi
-fi
-
-exit 0