!/bin/sh
Project1 为进程名
ps -fe|grep Project1 |grep -v grep
if [ $? -ne 0 ]
then
echo "start process....."
/cmd/Project1#进程路径
else
echo "runing....."
fi
如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!
ps -fe|grep Project1 |grep -v grep
if [ $? -ne 0 ]
then
echo "start process....."
/cmd/Project1#进程路径
else
echo "runing....."
fi
如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!
shell 进程守护
txttool.com 说一段 esp56物联 查询128 IP查询