diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/rabbitmq-multi.pod | 6 | ||||
| -rw-r--r-- | docs/rabbitmqctl.pod | 18 |
2 files changed, 24 insertions, 0 deletions
diff --git a/docs/rabbitmq-multi.pod b/docs/rabbitmq-multi.pod index 2e3f28c8fc..65d058337c 100644 --- a/docs/rabbitmq-multi.pod +++ b/docs/rabbitmq-multi.pod @@ -23,9 +23,15 @@ start_all I<count> start count nodes with unique names, listening on all IP addresses and on sequential ports starting from 5672. +status + print the status of all running RabbitMQ nodes + stop_all stop all local RabbitMQ nodes +rotate_logs + rotate log files for all local and running RabbitMQ nodes + =head1 EXAMPLES Start 3 local RabbitMQ nodes with unique, sequential port numbers: diff --git a/docs/rabbitmqctl.pod b/docs/rabbitmqctl.pod index db31b62134..b34cbca754 100644 --- a/docs/rabbitmqctl.pod +++ b/docs/rabbitmqctl.pod @@ -66,6 +66,19 @@ force_reset It should only be used as a last resort if the database or cluster configuration has been corrupted. +rotate_logs [suffix] + instruct the RabbitMQ node to rotate the log files. The RabbitMQ + broker will attempt to append the current contents of the log file + to the file with the name composed of the original name and the + suffix. It will create a new file if such a file does not already + exist. When no I<suffix> is specified, the empty log file is + simply created at the original location; no rotation takes place. + When an error occurs while appending the contents of the old log + file, the operation behaves in the same way as if no I<suffix> was + specified. + 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. + cluster I<clusternode> ... instruct the node to become member of a cluster with the specified nodes determined by I<clusternode> option(s). @@ -118,6 +131,11 @@ Grant user named foo access to the virtual host called test at the default Erlang node: rabbitmqctl map_user_vhost foo test + +Append the current logs' content to the files with ".1" suffix and reopen +them: + + rabbitmqctl rotate_logs .1 =head1 SEE ALSO |
