#!/bin/sh ( while true do sleep 60 WEBPORT=`getcfg System "Web Access Port"` curl http://127.0.0.1:5050/live --max-time 20 && curl -k -L http://127.0.0.1:$WEBPORT/cc3/live --max-time 20 if [ $? -eq 0 ] then continue fi curl http://127.0.0.1:5050/live --max-time 20 && curl -k -L http://127.0.0.1:$WEBPORT/cc3/live --max-time 20 if [ $? -eq 0 ] then continue fi curl http://127.0.0.1:5050/live --max-time 20 && curl -k -L http://127.0.0.1:$WEBPORT/cc3/live --max-time 20 if [ $? -eq 0 ] then continue fi kill -9 `pidof cc3-fastcgi` sleep 60 done ) /dev/null 2>&1 &