mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
New command to halt ejabberd abruptly with an error status code
Used for processone/ejabberd-contrib#97
This commit is contained in:
parent
d2c54fd5fe
commit
dcc8149f58
1 changed files with 4 additions and 0 deletions
|
@ -116,6 +116,10 @@ get_commands_spec() ->
|
||||||
desc = "Stop ejabberd gracefully",
|
desc = "Stop ejabberd gracefully",
|
||||||
module = ?MODULE, function = stop,
|
module = ?MODULE, function = stop,
|
||||||
args = [], result = {res, rescode}},
|
args = [], result = {res, rescode}},
|
||||||
|
#ejabberd_commands{name = halt, tags = [server],
|
||||||
|
desc = "Halt ejabberd abruptly with status code 1",
|
||||||
|
module = ejabberd, function = halt,
|
||||||
|
args = [], result = {res, rescode}},
|
||||||
#ejabberd_commands{name = restart, tags = [server],
|
#ejabberd_commands{name = restart, tags = [server],
|
||||||
desc = "Restart ejabberd gracefully",
|
desc = "Restart ejabberd gracefully",
|
||||||
module = ?MODULE, function = restart,
|
module = ?MODULE, function = restart,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue