KeepAlive Script

I was looking for a script to monitor and insure that Tomcat was active. I came across this script by Mahesh at https://serverfault.com/questions/608776/how-to-monitor-tomcat-application-and-restart-if-not-running. It can probably be modified to monitor any process you’d like. #!/bin/bash TOMCAT_HOME=/opt/tomcat PUBLIC_IP=`wget http://ipecho.net/plain -O – -q ; echo` EMAIL_BODY=”Hi Admin,\n\n$PUBLIC_IP Tomcat is down at $(date -d “+330 minutes” +”%Y-%m-%d %T”) IST, Please take necessary action.\n\n\nDo …

Create a self-signed Apache SSL Certificate

To Create a self-signed Apache SSL Certificate using OpenSSL: Open the command prompt and cd to your Apache installations “bin” directory. Usually it would be: cd “C:\Program Files (x86)\Apache Software Foundation\Apache2.4\bin” Next, we need to setup the Windows environment variable OPENSSL_CONF to point to the openssl.cnf files location. It is usually located in “C:\Program Files (x86)\Apache Software Foundation\Apache2.4\conf\openssl.cnf” directory. So …