deployMatch.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:astoptool 作者: zouliuyun 项目源码 文件源码
def template_matchServer_running(template_matchServer_ip, template_matchServer_id=1):

    template_matchServer = '{}_match_{}'.format(GAME, template_matchServer_id)

    @hosts(template_matchServer_ip)
    def _template_matchServer_running():
        with quiet():
            running = run('ps x | grep "[j]ava -Dstart.home=/app/{}/backend"'.format(template_matchServer)).succeeded
        if not running:
            raise Exception("Can't find the running java process for {}".format(template_matchServer))

    execute(_template_matchServer_running)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号