首页 Linux 正文
237

心跳检测

#!/bin/bash
pid="`ps -ef|grep cold_btc|grep -v grep|awk '{print $2}'`"
if [[ -z ${pid} ]] #If not matched pid, new pid will invoked
then
cd /var/www/finance
nohup php think cold_btc >>/tmp/cold_btc 2>&1 &
fi

正在加载评论...