添加monitor.sh的使用方法
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# usage: monitor.sh "<the exe file's absolute path and its shell parameter>"
|
||||
# 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`
|
||||
|
||||
Reference in New Issue
Block a user