From 1992b79f88e9bd02f78bb58696ea29e0224e3f0d Mon Sep 17 00:00:00 2001 From: Feng Lee Date: Sun, 2 Aug 2015 12:39:36 +0800 Subject: [PATCH] plugins --- rel/files/emqttd.config | 5 +++++ rel/files/loaded_plugins | 1 + rel/reltool.config | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 rel/files/loaded_plugins diff --git a/rel/files/emqttd.config b/rel/files/emqttd.config index 73cd9c995..498416fef 100644 --- a/rel/files/emqttd.config +++ b/rel/files/emqttd.config @@ -162,6 +162,11 @@ %% {rewrite, [{file, "etc/rewrite.config"}]} ]}, + %% Plugins + {plugins, [ + {dir, "./plugins"}, + {loaded_file, "./data/loaded_plugins"} + ]}, %% Listeners {listeners, [ {mqtt, 1883, [ diff --git a/rel/files/loaded_plugins b/rel/files/loaded_plugins new file mode 100644 index 000000000..bf38a149a --- /dev/null +++ b/rel/files/loaded_plugins @@ -0,0 +1 @@ +[emqttd_dashboard]. diff --git a/rel/reltool.config b/rel/reltool.config index 42e4755ef..768b793f0 100644 --- a/rel/reltool.config +++ b/rel/reltool.config @@ -88,5 +88,6 @@ {template, "files/rewrite.config", "etc/rewrite.config"}, {template, "files/clients.config", "etc/clients.config"}, {template, "files/plugins.config", "etc/plugins.config"}, - {template, "files/vm.args", "etc/vm.args"} + {template, "files/vm.args", "etc/vm.args"}, + {copy, "files/loaded_plugins", "data/loaded_plugins"} ]}.