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
19,619
社区成员
74,587
社区内容
加载中
试试用AI创作助手写篇文章吧