19,612
社区成员
发帖
与我相关
我的任务
分享
while :
do
if [ $(ps -ef|grep "node" | grep -v "grep" | wc -l) -eq 1 ];then
kill $(ps -ef|grep "node" | grep -v grep | awk '{print $2}')
else
echo "not found"
fi
node /home/run.js &
sleep 10m
done