diff options
| author | Hubert Plociniczak <hubert@lshift.net> | 2008-08-19 14:48:03 +0100 |
|---|---|---|
| committer | Hubert Plociniczak <hubert@lshift.net> | 2008-08-19 14:48:03 +0100 |
| commit | d6a2ba61a838b604fad47286afa097d136095635 (patch) | |
| tree | e8005f0be175dad6a6d07393b4ac32eeabe90eb4 /docs/rabbitmqctl.pod | |
| parent | 18c7a16507cde719f143213ed80663964a6e6c61 (diff) | |
| download | rabbitmq-server-git-d6a2ba61a838b604fad47286afa097d136095635.tar.gz | |
Used swap_handler mechanism provided in
error_logger to correctly reopen_logs.
This creates another copy of the handler
which has to be manually removed. Apparently
the first one in the list is the old one.
Updated man pages.
Diffstat (limited to 'docs/rabbitmqctl.pod')
| -rw-r--r-- | docs/rabbitmqctl.pod | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/docs/rabbitmqctl.pod b/docs/rabbitmqctl.pod index d7f453fbf0..eb1750d04c 100644 --- a/docs/rabbitmqctl.pod +++ b/docs/rabbitmqctl.pod @@ -68,10 +68,10 @@ force_reset reopen_logs [suffix] instruct the RabbitMQ node to close and reopen the log files. - When I<suffix> value is provided, the RabbitMQ broker will attempt - to rename the current log file to the file with appended suffix. - If file with the original name and suffix already exists, then - file renaming operation is aborted. + When the I<suffix> value is provided, the RabbitMQ broker will + attempt to append the current contents of the log file to the file + with name composed of the original name and the suffix. It will + create a new file if such a file does not already exist. This command might be helpful when you are e.g. writing your own logrotate script and you do not want to restart the RabbitMQ node. @@ -127,6 +127,11 @@ Grant user named foo access to the virtual host called test at the default Erlang node: rabbitmqctl map_user_vhost foo test + +Append current logs' content to the files with ".1" suffix and reopen +them: + + rabbitmqctl reopen_logs .1 =head1 SEE ALSO |
