diff --git a/node-daemon/pvcnoded/Daemon.py b/node-daemon/pvcnoded/Daemon.py index 60fb1f76..6baf34c5 100644 --- a/node-daemon/pvcnoded/Daemon.py +++ b/node-daemon/pvcnoded/Daemon.py @@ -1779,8 +1779,9 @@ def node_keepalive(): # Get past state and update if needed if debug: logger.out("Get past state and update if needed", state='d', prefix='main-thread') + past_state = zkhandler.read(('node.state.daemon', this_node.name)) - if past_state != 'run': + if past_state != 'run' and past_state != 'shutdown': this_node.daemon_state = 'run' zkhandler.write([ (('node.state.daemon', this_node.name), 'run')