#!/bin/sh

export SERVICE_NAME=tsi-

#jps -l | grep $SERVICE_NAME | grep -v grep | grep -v tail | wc -l
ps -eaf | grep $SERVICE_NAME | grep -v grep | grep -v tail | grep -v kafka | grep java| wc -l

sleep 1
#jps -l | grep $SERVICE_NAME | grep -v grep | grep -v tail 
ps -eaf | grep $SERVICE_NAME | grep -v grep | grep -v tail | grep -v kafka | grep java

