#!/bin/bash
bin=/data/ttmanager_amd64
shell=/data/run.sh
data=/data/mnt
type=qynode
ps -ef | grep $bin | grep -v grep
if [[ $? -eq 0 ]];then
echo "Is Runing..."
exit 0
fi
$shell -c $data -t $type > /dev/null 2>&1 &
sleep 30
lsof -i:1024
if [[ $? -eq 0 ]];then
echo "Runing..."
exit 0
fi
echo "Run Failed..."
exit 2