MCPcopy Create free account
hub / github.com/Tencent/phxsql / start_binary

Method start_binary

phxrpc_package_config/tools/binary_operator.py:54–71  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

52 return self.comm_kill_binary( 'phxsqlproxy' )
53
54 def start_binary( self ):
55 if self.kill_all() != 0:
56 print 'kill all failed'
57 return sys._getframe().f_lineno
58
59 if self.start_mysql() != 0:
60 print 'start mysql failed'
61 return sys._getframe().f_lineno
62
63 if self.start_phxbinlogsvr() != 0:
64 print 'start phxbinlogsvr failed'
65 return sys._getframe().f_lineno
66
67 if self.start_phxsqlproxy() != 0:
68 print 'start phxsqlproxy failed'
69 return sys._getframe().f_lineno
70
71 return 0
72
73 def start_mysql( self ):
74 cmd = 'nohup sh %s --defaults-file=%s --super_read_only &' \

Callers 2

install.pyFile · 0.80
restart.pyFile · 0.80

Calls 4

kill_allMethod · 0.95
start_mysqlMethod · 0.95
start_phxbinlogsvrMethod · 0.95
start_phxsqlproxyMethod · 0.95

Tested by

no test coverage detected