From bc54ea2449219287cb6c7f80bffcd25c683548a8 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 8 Jul 2019 19:29:49 -0400 Subject: [PATCH] Log message when starting or stopping API client --- node-daemon/pvcd/NodeInstance.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node-daemon/pvcd/NodeInstance.py b/node-daemon/pvcd/NodeInstance.py index 363a37b1..1aeab876 100644 --- a/node-daemon/pvcd/NodeInstance.py +++ b/node-daemon/pvcd/NodeInstance.py @@ -255,6 +255,7 @@ class NodeInstance(object): self.logger.out('Network list: {}'.format(', '.join(self.network_list))) time.sleep(2) if self.config['enable_api']: + self.logger.out('Stopping PVC API client service', state='i') common.run_os_command("systemctl stop pvc-api.service") for network in self.d_network: self.d_network[network].stopDHCPServer() @@ -272,6 +273,7 @@ class NodeInstance(object): self.d_network[network].createGateways() self.d_network[network].startDHCPServer() if self.config['enable_api']: + self.logger.out('Starting PVC API client service', state='i') common.run_os_command("systemctl start pvc-api.service") time.sleep(1) # Force Patroni to switch to the local instance