lsof | grep $log_file > /dev/null 2>&1 FOUND=$? sleep 60 if [ "$FOUND" == "1" ]