( self )
| 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 &' \ |
no test coverage detected