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)
评论列表
文章目录