监控cassandra并重启的shell脚本

#!/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

互联网广告,网络营销,数字营销,手游推广,手机流量,国外网络广告和营销,网络推广,国外电子商务营销,国外广告联盟发布,搜索引擎优化,英文站建设,域名投资,域名停放,谷歌广告,adsense,adwords,Amazon推广,Clickbank,Yeahmobi,MobVista,Avazu