update
This commit is contained in:
parent
4fcad95c79
commit
de7ea503e5
|
|
@ -101,7 +101,7 @@ def getInitDTpl():
|
|||
def getPidFile():
|
||||
file = getConf()
|
||||
content = mw.readFile(file)
|
||||
rep = 'pid\s*(.*)'
|
||||
rep = 'pid\s*(.*);'
|
||||
tmp = re.search(rep, content)
|
||||
return tmp.groups()[0].strip()
|
||||
|
||||
|
|
@ -306,7 +306,11 @@ def start():
|
|||
|
||||
|
||||
def stop():
|
||||
return restyOp('stop')
|
||||
r = restyOp('stop')
|
||||
pid_file = getPidFile()
|
||||
if os.path.exists(pid_file):
|
||||
os.remove(pid_file)
|
||||
return r
|
||||
|
||||
|
||||
def restart():
|
||||
|
|
|
|||
|
|
@ -103,6 +103,8 @@ fi
|
|||
|
||||
pip3 install --upgrade pip -i $PIPSRC
|
||||
pip3 install --upgrade setuptools -i $PIPSRC
|
||||
|
||||
# --no-cache-dir
|
||||
cd /www/server/mdserver-web && pip3 install -r /www/server/mdserver-web/requirements.txt -i $PIPSRC
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue