lttng-rotate(1)
===============
-:revdate: 30 April 2021
+:revdate: 17 May 2021
NAME
A `rotate-session` trigger action can also rotate a tracing session (see
man:lttng-add-trigger(1)).
+See the <<examples,EXAMPLES>> section below for usage examples.
+
[IMPORTANT]
====
You may only use the `rotate` command when:
====
-include::common-cmd-options-head.txt[]
+include::common-lttng-cmd-options-head.txt[]
option:-n, option:--no-wait::
completed before exiting.
-include::common-cmd-help-options.txt[]
+include::common-lttng-cmd-help-options.txt[]
+
+
+include::common-lttng-cmd-after-options.txt[]
+
+
+[[examples]]
+EXAMPLES
+--------
+.Rotate the current tracing session.
+====
+[role="term"]
+----
+$ lttng rotate
+----
+====
+
+.Rotate a specific tracing session.
+====
+[role="term"]
+----
+$ lttng rotate my-session
+----
+====
+
+.Rotate the current tracing session without waiting for completion.
+====
+See the option:--no-wait option.
+
+[role="term"]
+----
+$ lttng rotate --no-wait
+----
+====
-include::common-cmd-footer.txt[]
+include::common-footer.txt[]
SEE ALSO
--------
man:lttng(1),
-man:lttng-concepts(7),
man:lttng-disable-rotation(1),
-man:lttng-enable-rotation(1)
+man:lttng-enable-rotation(1),
+man:lttng-concepts(7)