Added custom 502 page and restart script
Temporary fix for the crash problem.
This commit is contained in:
parent
bee88f502d
commit
af7a8f7c25
3 changed files with 91 additions and 2 deletions
16
tomcat-restart.sh
Normal file
16
tomcat-restart.sh
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
# There's a problem with YouYesYet which causes Tomcat to fall over
|
||||
# from time to time; it needs fixed. This is a temporary stopgap
|
||||
# simon, 20180918
|
||||
|
||||
wget -S https://www.projecthope.scot 2>&1 | grep 'HTTP/1.1 5'
|
||||
|
||||
if [ "$?" = "0" ]
|
||||
then
|
||||
header=`wget -S https://www.projecthope.scot 2>&1 | grep 'HTTP/1.1 5'`
|
||||
timestamp=`date`
|
||||
echo "${timestamp} : ${header} : Restarting Tomcat"
|
||||
service tomcat8 restart
|
||||
fi
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue