Skip to content

Commit

Permalink
修复容器内无法停止服务
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Dec 9, 2020
1 parent bccaba6 commit 0d0c6d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion v2ray_util/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '3.9.0'
__version__ = '3.9.0.1'

import sys
if "xray" in sys.argv[0]:
Expand Down
2 changes: 1 addition & 1 deletion v2ray_util/util_core/v2ray.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def start(cls):
@classmethod
def stop(cls):
if os.path.exists("/.dockerenv"):
cls.docker_run('''ps aux|grep "/usr/bin/{bin}/{bin}"|awk '{print $1}'|xargs -r kill -9 2>/dev/null'''.format(bin=run_type), "stop")
cls.docker_run("ps aux|grep /usr/bin/{bin}/{bin}".format(bin=run_type) + "|awk '{print $1}'|xargs -r kill -9 2>/dev/null", "stop")
else:
cls.run("systemctl stop {}".format(run_type), "stop")

Expand Down

0 comments on commit 0d0c6d5

Please sign in to comment.