From eca7ca4958246ea6013eb4245877c6fa32bd6e71 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 11 Jun 2018 22:55:06 -0400 Subject: [PATCH] Set the daemon into startup state on boot --- pvcd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pvcd.py b/pvcd.py index 09b549df..cbece4c2 100755 --- a/pvcd.py +++ b/pvcd.py @@ -110,6 +110,7 @@ def zk_listener(state): pass zk.add_listener(zk_listener) +zk.set('/nodes/{}/daemonstate'.format(myhostname), 'startup'.encode('ascii')) def cleanup(): try: