Don't define restart and stop in ejabberd_ctl, use the corresponding commands
This commit is contained in:
parent
91c9b0446c
commit
0f73d3f4d1
|
@ -141,15 +141,6 @@ process(["status"], _Version) ->
|
||||||
?STATUS_SUCCESS
|
?STATUS_SUCCESS
|
||||||
end;
|
end;
|
||||||
|
|
||||||
process(["stop"], _Version) ->
|
|
||||||
%%ejabberd_cover:stop(),
|
|
||||||
init:stop(),
|
|
||||||
?STATUS_SUCCESS;
|
|
||||||
|
|
||||||
process(["restart"], _Version) ->
|
|
||||||
init:restart(),
|
|
||||||
?STATUS_SUCCESS;
|
|
||||||
|
|
||||||
%% TODO: Mnesia operations should not be hardcoded in ejabberd_ctl module.
|
%% TODO: Mnesia operations should not be hardcoded in ejabberd_ctl module.
|
||||||
%% For now, I leave them there to avoid breaking those commands for people that
|
%% For now, I leave them there to avoid breaking those commands for people that
|
||||||
%% may be using it (as format of response is going to change).
|
%% may be using it (as format of response is going to change).
|
||||||
|
|
Loading…
Reference in New Issue