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

* src/ejabberd_ctl.erl: Added command for log reopening

SVN Revision: 201
This commit is contained in:
Alexey Shchepin 2004-01-27 19:14:49 +00:00
parent 273886701b
commit 976e185a4a
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2004-01-27 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_ctl.erl: Added command for log reopening
2004-01-18 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_ctl.erl: Added commands for backup processing

View File

@ -40,6 +40,9 @@ process(Node, ["restart"]) ->
ok
end;
process(Node, ["reopen-log"]) ->
{error_logger, Node} ! {emulator, noproc, reopen};
process(Node, ["register", User, Password]) ->
case rpc:call(Node, ejabberd_auth, try_register, [User, Password]) of
{atomic, ok} ->
@ -115,6 +118,7 @@ print_usage() ->
"Available commands:~n"
" stop\t\t\t\tstop ejabberd~n"
" restart\t\t\trestart ejabberd~n"
" reopen-log\t\t\treopen log file~n"
" register user password\tregister a user~n"
" unregister user\t\tunregister a user~n"
" backup file\t\t\tstore a backup in file~n"