From 83b60a48456c8d3efe90b5593d80323e435f2426 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Mon, 28 Jul 2008 18:48:11 +0000 Subject: Implement support for non-configuration plugins - add new configuration option - switch all callers over to new Core api - fork RecvStats when DBStats is in use git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4831 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/bcfg2-server | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/sbin/bcfg2-server') diff --git a/src/sbin/bcfg2-server b/src/sbin/bcfg2-server index 7ee8abfdd..47f0afa1d 100755 --- a/src/sbin/bcfg2-server +++ b/src/sbin/bcfg2-server @@ -40,13 +40,16 @@ class Bcfg2Serv(Bcfg2.Component.Component): raise SetupError try: - self.Core = Core(setup['repo'], setup['structures'], + self.Core = Core(setup['repo'], setup['plugins'], setup['structures'], setup['generators'], setup['password'], setup['svn'], setup['encoding']) except CoreInitError, msg: logger.critical("Fatal error: %s" % (msg)) raise SystemExit, 1 + if 'DBStats' in self.Core.plugins: + self.fork_funcs.append("RecvStats") + self.funcs.update({ "AssertProfile" : self.Bcfg2AssertProfile, "GetConfig" : self.Bcfg2GetConfig, @@ -195,6 +198,7 @@ if __name__ == '__main__': OPTINFO.update({'repo': Bcfg2.Options.SERVER_REPOSITORY, 'svn': Bcfg2.Options.SERVER_SVN, + 'plugins': Bcfg2.Options.SERVER_PLUGINS, 'structures': Bcfg2.Options.SERVER_STRUCTURES, 'generators': Bcfg2.Options.SERVER_GENERATORS, 'password': Bcfg2.Options.SERVER_PASSWORD}) -- cgit v1.2.3-1-g7c22