diff --git a/node-daemon/pvcd/Daemon.py b/node-daemon/pvcd/Daemon.py index db548d5d..b029edba 100644 --- a/node-daemon/pvcd/Daemon.py +++ b/node-daemon/pvcd/Daemon.py @@ -459,10 +459,13 @@ zk_conn.add_listener(zk_listener) # Cleanup function def cleanup(): - logger.out('Terminating pvcd and cleaning up', state='s') - global zk_conn, update_timer, d_domains + logger.out('Performing final keepalive update', state='s') + update_zookeeper() + + logger.out('Terminating pvcd and cleaning up', state='s') + # Stop keepalive thread try: stopKeepaliveTimer()