restart server quickly when change password
This commit is contained in:
parent
b32cc8f703
commit
da46866828
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue