http://pastie.org/2607947#12
I high recomended this script for debian 6,7,8, ubuntu 14,15, centOS 5,6, this working perfectly. Its auto restart when server get crash.U just need python 2.7 and open by screen binary. This is the best way what we can do. Servers from top using that script. Guys dont let ddoser win