? Editing: Post:21.body Save Delete Cancel
Content changed Sign & Publish new content

r3df0x Blog

贴一些自己使用的文章

关注更新已关注

最新评论:

Add new post

Title

21 hours ago · 2 min read ·
3 comments
Body
阅读全文

Not found

检查进程是否存在,如不存在就重启脚本

on Nov 13, 2016
#!/bin/sh
ps -fe|grep launcher/start.py|grep -v grep
if [ $? -ne 0 ]
then
echo "Restart process....."
sudo nohup /home/pi/GoGo-1.8.0/start.sh &
else
echo "runing....."
fi
#####

launcher/start.py 为进程关键字

0 Comment:

user_name1 day ago
回复
Body



当前已连接 0 个节点

知者無涯 © 2016 | Powered by ZeroNet [ open, free, and uncensored ]
This page is a snapshot of ZeroNet. Start your own ZeroNet for complete experience. Learn More