Commit 19a495ca authored by Bruce Momjian's avatar Bruce Momjian

Properly document rotatelogs, and add mention of it to pg_ctl manual page.

parent 0cb27df5
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.33 2004/04/05 03:02:03 momjian Exp $ $PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.34 2004/05/14 20:01:19 momjian Exp $
--> -->
<chapter id="maintenance"> <chapter id="maintenance">
...@@ -461,7 +461,7 @@ VACUUM ...@@ -461,7 +461,7 @@ VACUUM
you can send a <literal>SIGHUP</literal> signal to the you can send a <literal>SIGHUP</literal> signal to the
<application>syslog</> daemon whenever you want to force it to <application>syslog</> daemon whenever you want to force it to
start writing a new log file. If you want to automate log start writing a new log file. If you want to automate log
rotation, the <application>logrotate</application> program can be rotation, the <application>rotatelogs</application> program can be
configured to work with log files from configured to work with log files from
<application>syslog</application>. <application>syslog</application>.
</para> </para>
...@@ -484,12 +484,12 @@ VACUUM ...@@ -484,12 +484,12 @@ VACUUM
pipe command: pipe command:
<programlisting> <programlisting>
pg_ctl start | logrotate pg_ctl start | rotatelogs /var/log/pgsql_log 86400
</programlisting> </programlisting>
The <productname>PostgreSQL</> distribution doesn't include a The <productname>PostgreSQL</> distribution doesn't include a
suitable log rotation program, but there are many available on the suitable log rotation program, but there are many available on the
Internet. For example, the <application>logrotate</application> Internet. For example, the <application>rotatelogs</application>
tool included in the <productname>Apache</productname> distribution tool included in the <productname>Apache</productname> distribution
can be used with <productname>PostgreSQL</productname>. can be used with <productname>PostgreSQL</productname>.
</para> </para>
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_ctl-ref.sgml,v 1.25 2003/11/29 19:51:39 pgsql Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/pg_ctl-ref.sgml,v 1.26 2004/05/14 20:01:19 momjian Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -87,13 +87,13 @@ PostgreSQL documentation ...@@ -87,13 +87,13 @@ PostgreSQL documentation
server is started in the background, and standard input is attached to server is started in the background, and standard input is attached to
<filename>/dev/null</filename>. The standard output and standard <filename>/dev/null</filename>. The standard output and standard
error are either appended to a log file (if the <option>-l</option> error are either appended to a log file (if the <option>-l</option>
option is used), or redirected to <application>pg_ctl</application>'s option is used), or redirected to <application>pg_ctl</application>'s
standard output (not standard error). If no log file is chosen, the standard output (not standard error). If no log file is chosen, the
standard output of <application>pg_ctl</application> should be redirected standard output of <application>pg_ctl</application> should be redirected
to a file or piped to another process, for example a log rotating program, to a file or piped to another process such as a log rotating program
otherwise <command>postmaster</command> will write its output to the controlling like <application>rotatelogs</>; otherwise the <command>postmaster</command>
terminal (from the background) and will not leave the shell's will write its output to the controlling terminal (from the background)
process group. and will not leave the shell's process group.
</para> </para>
<para> <para>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment