diff options
| author | Matthias Radestock <matthias@lshift.net> | 2008-09-08 16:19:01 +0100 |
|---|---|---|
| committer | Matthias Radestock <matthias@lshift.net> | 2008-09-08 16:19:01 +0100 |
| commit | 453584601c3d7652eb8a08d6e63cf273caf43521 (patch) | |
| tree | fdf9a5b6f11d9f6954623c909055735bcc99c31e /docs | |
| parent | e5bf57a323e4727ce005b0d0e6f883921a9c21c6 (diff) | |
| parent | 5587def78e0cf978a492af3a91796e479331d9a9 (diff) | |
| download | rabbitmq-server-git-453584601c3d7652eb8a08d6e63cf273caf43521.tar.gz | |
merge bug19200 into default
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/rabbitmqctl.pod | 18 |
1 files changed, 18 insertions, 0 deletions
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 |
