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