fix stop script

This commit is contained in:
破娃酱 2017-05-12 17:13:58 +08:00
parent 709e67afe4
commit 6c162b13c4
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
python_ver=$(ls /usr/bin|grep -e "^python[23]\.[1-9]\+$"|tail -1) python_ver=$(ls /usr/bin|grep -e "^python[23]\.[1-9]\+$"|tail -1)
eval $(ps -ef | grep "[0-9] ${python_ver} server\\.py a" | awk '{print "kill "$2}') eval $(ps -ef | grep "[0-9] ${python_ver} server\\.py a" | awk '{print "kill "$2}')

View file

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
python_ver=$(ls /usr/bin|grep -e "^python[23]\.[1-9]\+$"|tail -1) python_ver=$(ls /usr/bin|grep -e "^python[23]\.[1-9]\+$"|tail -1)
eval $(ps -ef | grep "[0-9] ${python_ver} server\\.py m" | awk '{print "kill "$2}') eval $(ps -ef | grep "[0-9] ${python_ver} server\\.py m" | awk '{print "kill "$2}')