summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert@lshift.net>2008-08-18 12:11:58 +0100
committerHubert Plociniczak <hubert@lshift.net>2008-08-18 12:11:58 +0100
commit18c7a16507cde719f143213ed80663964a6e6c61 (patch)
treee68d6b0bc8670adfe193566683e2a683307c78c1 /docs
parentc90b2a416bd677b41766559b37893af5d4547569 (diff)
downloadrabbitmq-server-git-18c7a16507cde719f143213ed80663964a6e6c61.tar.gz
Added optional argument that specifies the suffix
of the old log file. Using add_handler and delete_handler because swap_handlers doesn't behave as expected.
Diffstat (limited to 'docs')
-rw-r--r--docs/rabbitmqctl.pod6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/rabbitmqctl.pod b/docs/rabbitmqctl.pod
index ebe0cd4393..d7f453fbf0 100644
--- a/docs/rabbitmqctl.pod
+++ b/docs/rabbitmqctl.pod
@@ -66,8 +66,12 @@ force_reset
It should only be used as a last resort if the database or cluster
configuration has been corrupted.
-reopen_logs
+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.
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.