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`