25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Don't define restart and stop in ejabberd_ctl, use the corresponding commands

This commit is contained in:
Badlop 2022-03-25 12:15:54 +01:00
parent 91c9b0446c
commit 0f73d3f4d1

View File

@ -141,15 +141,6 @@ process(["status"], _Version) ->
?STATUS_SUCCESS
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.
%% 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).