-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the leftovers of the config reload feature
- Loading branch information
Showing
1 changed file
with
3 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,19 +26,14 @@ | |
-module(service_admin_extra_node). | ||
-author('[email protected]'). | ||
|
||
-export([ | ||
commands/0, | ||
|
||
load_config/1, | ||
-export([commands/0, | ||
get_cookie/0, | ||
remove_node/1 | ||
]). | ||
remove_node/1]). | ||
|
||
-ignore_xref([ | ||
commands/0, load_config/1, get_cookie/0, remove_node/1 | ||
]). | ||
|
||
-include("mongoose.hrl"). | ||
-include("ejabberd_commands.hrl"). | ||
|
||
%%% | ||
|
@@ -48,18 +43,13 @@ | |
-spec commands() -> [ejabberd_commands:cmd(), ...]. | ||
commands() -> | ||
[ | ||
#ejabberd_commands{name = load_config, tags = [server], | ||
desc = "Load ejabberd configuration file", | ||
module = ?MODULE, function = load_config, | ||
args = [{file, string}], | ||
result = {res, rescode}}, | ||
#ejabberd_commands{name = get_cookie, tags = [erlang], | ||
desc = "Get the Erlang cookie of this node", | ||
module = ?MODULE, function = get_cookie, | ||
args = [], | ||
result = {cookie, string}}, | ||
#ejabberd_commands{name = remove_node, tags = [erlang], | ||
desc = "Remove an ejabberd node from Mnesia clustering config", | ||
desc = "Remove a MongooseIM node from Mnesia clustering config", | ||
module = ?MODULE, function = remove_node, | ||
args = [{node, string}], | ||
result = {res, rescode}} | ||
|
@@ -70,10 +60,6 @@ commands() -> | |
%%% Node | ||
%%% | ||
|
||
-spec load_config(string()) -> 'ok'. | ||
load_config(Path) -> | ||
ok = ejabberd_config:load_file(Path). | ||
|
||
|
||
-spec get_cookie() -> string(). | ||
get_cookie() -> | ||
|