pagecheck and tomcat reboot script