From 4584223c209020d006276324decc538b313b50b6 Mon Sep 17 00:00:00 2001 From: Sylvain Pineau Date: Tue, 14 Jul 2020 13:31:30 +0200 Subject: bin:tomcat_test: Deleted --- bin/tomcat_test | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100755 bin/tomcat_test (limited to 'bin') 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 -- cgit v1.2.3