Browse Source

restart server quickly when change password

dev
breakwa11 9 years ago
parent
commit
da46866828
  1. 1
      db_transfer.py

1
db_transfer.py

@ -124,6 +124,7 @@ class DbTransfer(object):
#password changed #password changed
logging.info('db stop server at port [%s] reason: password changed' % (port,)) logging.info('db stop server at port [%s] reason: password changed' % (port,))
ServerPool.get_instance().cb_del_server(port) ServerPool.get_instance().cb_del_server(port)
ServerPool.get_instance().new_server(port, passwd)
elif allow and ServerPool.get_instance().server_run_status(port) is False: elif allow and ServerPool.get_instance().server_run_status(port) is False:
logging.info('db start server at port [%s] pass [%s]' % (port, passwd)) logging.info('db start server at port [%s] pass [%s]' % (port, passwd))

Loading…
Cancel
Save