#!/bin/sh

while true
do
	if ! ps -A | grep 'sentinel' > /dev/null
    	then
		echo "front app not running, restarting!"
		echo "rebooted" > /tmp/systemRebooted
      		./$1 -qws 
    	fi
	sleep 30
done 2>&1
