Set shutdown state after final keepalive
This commit is contained in:
parent
80de40252b
commit
0f15e7cda5
|
@ -472,12 +472,12 @@ zk_conn.add_listener(zk_listener)
|
|||
def cleanup():
|
||||
global zk_conn, update_timer, d_domains
|
||||
|
||||
# Set stop state in Zookeeper
|
||||
zkhandler.writedata(zk_conn, { '/nodes/{}/daemonstate'.format(myhostname): 'shutdown' })
|
||||
|
||||
logger.out('Performing final keepalive update', state='s')
|
||||
update_zookeeper()
|
||||
|
||||
# Set shutdown state in Zookeeper
|
||||
zkhandler.writedata(zk_conn, { '/nodes/{}/daemonstate'.format(myhostname): 'shutdown' })
|
||||
|
||||
logger.out('Terminating pvcd and cleaning up', state='s')
|
||||
|
||||
# Stop keepalive thread
|
||||
|
|
Loading…
Reference in New Issue