mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update task.py
This commit is contained in:
@@ -387,7 +387,8 @@ def startPHPVersion(version):
|
||||
cgi = '/tmp/php-cgi-'+version + '.sock'
|
||||
pid = sdir+'/php/'+version+'/var/run/php-fpm.pid';
|
||||
data = public.execShell("ps -ef | grep php/"+version+" | grep -v grep|grep -v python |awk '{print $2}'")
|
||||
print data
|
||||
if data[0] != '' :
|
||||
os.system("ps -ef | grep php/"+version+" | grep -v grep|grep -v python |awk '{print $2}' | xargs kill ")
|
||||
time.sleep(0.5);
|
||||
if not os.path.exists(cgi): os.system('rm -f ' + cgi);
|
||||
if not os.path.exists(pid): os.system('rm -f ' + pid);
|
||||
|
||||
Reference in New Issue
Block a user