From f09849bedf097073ef047401eb85e614e00572a8 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 11 Jul 2021 23:18:14 -0400 Subject: [PATCH] Don't overwrite shutdown state on termination Just a minor quibble and not really impactful. --- node-daemon/pvcnoded/Daemon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')