Commit 70cb1a92 authored by chen.weican's avatar chen.weican

【修改内容】修改后台进程检测脚本

【提交人】陈伟灿
parent 15e812ee
......@@ -5,17 +5,19 @@ do
sleep 30
PIDS=`ps|grep kk_midware |grep -v grep | awk '{print $1}'`
if [ "$PIDS" != "" ]; then
echo "kk_midware is runing!"
echo "kk_midware is runing!"
else
/home/kk/kk_midware >/dev/null 2>&1 &
/home/kk/kk_midware >/dev/null 2>&1 &
#运行进程
fi
sleep 30
PIDS=`ps|grep kcloud |grep -v grep | awk '{print $1}'`
if [ "$PIDS" != "" ]; then
echo "kcloud is runing!"
echo "kcloud is runing!"
else
/home/kk/kcloud >/dev/null 2>&1 &
#运行进程
echo "kcloud is not running ,now restart kk_midware and kcloud"
pgrep kk_midware | xargs kill -s 9
/home/kk/kk_midware >/dev/null 2>&1 &
/home/kk/kcloud >/dev/null 2>&1 &
fi
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment