#!/bin/bash
ps -ef|grep -v grep|grep presto >/dev/null 2>&1
if [ $? -eq 0 ]
then
echo "yes-->$(date "+%Y-%m-%d-%H-%M")" >> check_presto_yes.log
else
echo "no-->$(date "+%Y-%m-%d-%H-%M")" >> check_presto_no.log
/opt/bmr/presto/bin/launcher restart
fi