Set the daemon into startup state on boot

This commit is contained in:
Joshua Boniface 2018-06-11 22:55:06 -04:00
parent bb1d0c6c5b
commit eca7ca4958
1 changed files with 1 additions and 0 deletions

View File

@ -110,6 +110,7 @@ def zk_listener(state):
pass pass
zk.add_listener(zk_listener) zk.add_listener(zk_listener)
zk.set('/nodes/{}/daemonstate'.format(myhostname), 'startup'.encode('ascii'))
def cleanup(): def cleanup():
try: try: