#!/bin/bash

`dirname $0`/stop_griddb.sh

echo "Starting GridDB... "
ssh griddb1 "sudo su - gsadm -c gs_startnode"
sleep 5
ssh griddb1 "sudo su - gsadm -c 'gs_joincluster -u admin/admin'"
sleep 5
ssh griddb1 "sudo su - gsadm -c 'gs_stat -u admin/admin'"


