<!--
doc/src/sgml/ref/pcp_logrotate_pgpool.sgml
Pgpool-II documentation
-->

<refentry id="PCP-LOG-ROTATE">
 <indexterm zone="pcp-log-rotate">
  <primary>pcp_log_rotate</primary>
 </indexterm>

 <refmeta>
  <refentrytitle>pcp_log_rotate</refentrytitle>
  <manvolnum>1</manvolnum>
  <refmiscinfo>PCP Command</refmiscinfo>
 </refmeta>

 <refnamediv>
  <refname>pcp_log_rotate</refname>
  <refpurpose>
   rotates the Pgpool-II's log file</refpurpose>
 </refnamediv>

 <refsynopsisdiv>
  <cmdsynopsis>
   <command>pcp_log_rotate</command>
   <arg rep="repeat"><replaceable>options</replaceable></arg>
  </cmdsynopsis>
 </refsynopsisdiv>

 <refsect1 id="R1-PCP-LOG-ROTATE-1">
  <title>Description</title>
  <para>
   <command>pcp_log_rotate</command>
   rotates the Pgpool-II's log file.
  </para>
 </refsect1>

 <refsect1>
  <title>Options</title>
  <para>
   <variablelist>

    <varlistentry>
     <term><option>-s <replaceable class="parameter">scope</replaceable></option></term>
     <term><option>--scope=<replaceable class="parameter">scope</replaceable></option></term>
     <listitem>
      <para>
       Specifies the breadth of a command's impact.
      </para>
      <para>
       The supported command scopes are as follows (The default is "local"):
       <itemizedlist>
	<listitem><para>c, cluster : rotates the Pgpool-II's log files of all Pgpool-II nodes part of the cluster </para></listitem>
	<listitem><para>l, local : rotates the Pgpool-II's log file of local Pgpool-II node only </para></listitem>
       </itemizedlist>
      </para>
     </listitem>
    </varlistentry>

    <varlistentry>
     <term><option>Other options </option></term>
     <listitem>
      <para>
       See <xref linkend="pcp-common-options">.
      </para>
     </listitem>
    </varlistentry>

   </variablelist>
  </para>
 </refsect1>

</refentry>
