Skip to content

Commit 19a495c

Browse files
committed
Properly document rotatelogs, and add mention of it to pg_ctl manual page.
1 parent 0cb27df commit 19a495c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

doc/src/sgml/maintenance.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.33 2004/04/05 03:02:03 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/maintenance.sgml,v 1.34 2004/05/14 20:01:19 momjian Exp $
33
-->
44

55
<chapter id="maintenance">
@@ -461,7 +461,7 @@ VACUUM
461461
you can send a <literal>SIGHUP</literal> signal to the
462462
<application>syslog</> daemon whenever you want to force it to
463463
start writing a new log file. If you want to automate log
464-
rotation, the <application>logrotate</application> program can be
464+
rotation, the <application>rotatelogs</application> program can be
465465
configured to work with log files from
466466
<application>syslog</application>.
467467
</para>
@@ -484,12 +484,12 @@ VACUUM
484484
pipe command:
485485

486486
<programlisting>
487-
pg_ctl start | logrotate
487+
pg_ctl start | rotatelogs /var/log/pgsql_log 86400
488488
</programlisting>
489489

490490
The <productname>PostgreSQL</> distribution doesn't include a
491491
suitable log rotation program, but there are many available on the
492-
Internet. For example, the <application>logrotate</application>
492+
Internet. For example, the <application>rotatelogs</application>
493493
tool included in the <productname>Apache</productname> distribution
494494
can be used with <productname>PostgreSQL</productname>.
495495
</para>

doc/src/sgml/ref/pg_ctl-ref.sgml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_ctl-ref.sgml,v 1.25 2003/11/29 19:51:39 pgsql Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_ctl-ref.sgml,v 1.26 2004/05/14 20:01:19 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -87,13 +87,13 @@ PostgreSQL documentation
8787
server is started in the background, and standard input is attached to
8888
<filename>/dev/null</filename>. The standard output and standard
8989
error are either appended to a log file (if the <option>-l</option>
90-
option is used), or redirected to <application>pg_ctl</application>'s
90+
option is used), or redirected to <application>pg_ctl</application>'s
9191
standard output (not standard error). If no log file is chosen, the
9292
standard output of <application>pg_ctl</application> should be redirected
93-
to a file or piped to another process, for example a log rotating program,
94-
otherwise <command>postmaster</command> will write its output to the controlling
95-
terminal (from the background) and will not leave the shell's
96-
process group.
93+
to a file or piped to another process such as a log rotating program
94+
like <application>rotatelogs</>; otherwise the <command>postmaster</command>
95+
will write its output to the controlling terminal (from the background)
96+
and will not leave the shell's process group.
9797
</para>
9898

9999
<para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy