mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-09 22:29:25 +08:00
update
This commit is contained in:
@@ -281,6 +281,7 @@ def status():
|
||||
return 'start'
|
||||
|
||||
|
||||
# ps -ef|grep nginx|awk '{print $2}'|xargs kill
|
||||
def restyOp(method):
|
||||
file = initDreplace()
|
||||
|
||||
@@ -292,6 +293,7 @@ def restyOp(method):
|
||||
|
||||
current_os = mw.getOs()
|
||||
if current_os == "darwin":
|
||||
# print(file + ' ' + method)
|
||||
data = mw.execShell(file + ' ' + method)
|
||||
if data[1] == '':
|
||||
return 'ok'
|
||||
|
||||
@@ -49,10 +49,12 @@ case "$1" in
|
||||
mPID=`cat $PIDFILE`
|
||||
isStart=`ps ax | awk '{ print $1 }' | grep -e "^${mPID}$"`
|
||||
if [ "$isStart" = '' ];then
|
||||
ps -ef|grep nginx|grep -v grep |awk '{print $2}'| xargs kill
|
||||
echo "$NAME is not running."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
ps -ef|grep nginx|grep -v grep |awk '{print $2}'| xargs kill
|
||||
echo "$NAME is not running."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user