!/bin/sh

ps -fe|grep worker/listen |grep -v grep
if [ $? -ne 0 ]
then

nohup /Applications/XAMPP/xamppfiles/htdocs/www_beta/yii worker/listen &

echo “重新启动了1个worker/listen任务…..”
else
echo “监听程序正在运行呢,别担心…..”
fi