home
—
from
#!/bin/bash xxnumber=`ps -ef | grep cassandra | grep -v “grep”|wc -l` echo “process is runing “ if [ $xxnumber -eq 0 ] then echo “process is dead and restart….” /data/apache-cassandra-3.0.2/bin/cassandra fi