From f70b2d9f73f3dfa861df332276559608f276b92c Mon Sep 17 00:00:00 2001 From: Jelte Jansen Date: Wed, 28 Oct 2009 00:19:53 +0000 Subject: [PATCH] listen to ConfigManager channel for commands git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@135 e5f2f494-b856-4b98-b285-d166d9295462 --- src/lib/bind-cfgd/bind-cfgd.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/bind-cfgd/bind-cfgd.py b/src/lib/bind-cfgd/bind-cfgd.py index 7034da5d9a..1f70e314bf 100644 --- a/src/lib/bind-cfgd/bind-cfgd.py +++ b/src/lib/bind-cfgd/bind-cfgd.py @@ -3,6 +3,7 @@ import ISC class ConfigManager: def __init__(self): self.cc = ISC.CC.Session() + self.cc.group_subscribe("ConfigManager") def read_config(self, filename): pass @@ -12,6 +13,9 @@ class ConfigManager: def run(self): while (True): + env, msg = self.cc.group_recvmsg(False) + print "message: " + print msg pass if __name__ == "__main__":