From 4015ee5910845c87e39088ae24c808fd68e349ec Mon Sep 17 00:00:00 2001 From: xinyang <41963211+lloi7@users.noreply.github.com> Date: Sun, 28 Apr 2019 13:09:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0monitor.sh=E7=9A=84=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/monitor.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/monitor.sh b/tools/monitor.sh index cf657c1..5b16d2a 100755 --- a/tools/monitor.sh +++ b/tools/monitor.sh @@ -1,5 +1,8 @@ #!/bin/sh +# usage: monitor.sh "" +# And then when ever the exe shutdonw it will be automatically restart + exe=$1 while true; do state=`ps aux | grep "$1" | grep -v grep | grep -v $0`