I am writing a clusterwise singleton service to one of our applications. It is working fine and singleton service change it's master node when there is a server shut down. The problem I am facing is when the master node shut down happens singleton service doesn't copy it's state (current values in it's variables) in to new master node.
Is there any way we can copy state of a singleton service when the node ? Attached is configuration and service files for your reference.
Any help would be appriated.