|
1 | 1 | <!--
|
2 |
| -$Header: /cvsroot/pgsql/doc/src/sgml/maintenance.sgml,v 1.25 2003/09/12 22:17:23 tgl Exp $ |
| 2 | +$Header: /cvsroot/pgsql/doc/src/sgml/maintenance.sgml,v 1.26 2003/10/09 19:05:09 momjian Exp $ |
3 | 3 | -->
|
4 | 4 |
|
5 | 5 | <chapter id="maintenance">
|
@@ -422,13 +422,14 @@ VACUUM
|
422 | 422 |
|
423 | 423 | <para>
|
424 | 424 | The simplest production-grade approach to managing log output is to
|
425 |
| - send it all to <application>syslog</> and let |
426 |
| - <application>syslog</> deal with file rotation. To do this, set |
427 |
| - the configurations parameter <literal>syslog</> to 2 (to log to <application>syslog</> only) in |
428 |
| - <filename>postgresql.conf</>. Then you can send a |
429 |
| - <literal>SIGHUP</literal> signal to the <application>syslog</> |
430 |
| - daemon whenever you want to force it to start writing a new log |
431 |
| - file. |
| 425 | + send it all to <application>syslog</> and let <application>syslog</> |
| 426 | + deal with file rotation. To do this, set the configurations parameter |
| 427 | + <literal>syslog</> to 2 (to log to <application>syslog</> only) in |
| 428 | + <filename>postgresql.conf</>. Then you can send a <literal>SIGHUP</literal> |
| 429 | + signal to the <application>syslog</> daemon whenever you want to force it |
| 430 | + to start writing a new log file. If you want to automate log rotation, |
| 431 | + the logrotate program can be configured to work with log files from syslog. |
| 432 | + |
432 | 433 | </para>
|
433 | 434 |
|
434 | 435 | <para>
|
|