X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 124C052B23 for ; Sun, 17 Jul 2005 09:04:33 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 68346-07 for ; Sun, 17 Jul 2005 12:04:23 +0000 (GMT) Received: from web52703.mail.yahoo.com (web52703.mail.yahoo.com [206.190.48.226]) by svr1.postgresql.org (Postfix) with SMTP id 65D8D52B74 for ; Sun, 17 Jul 2005 09:04:22 -0300 (ADT) Received: (qmail 40669 invoked by uid 60001); 17 Jul 2005 12:04:25 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.br; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=dHTx3EGB/CMQz7ou5lnGk0YJRzt2Y3l27g2OAFolpOtwUEG/xq9Xk0sfUlg1iq8l4hJI4qC/zfoTJWTO/LiCKGGs2chdqeNeh4+k8sXw+AaR2UU5fdM+++USTUx/KOyWihzi9ZOyrKWPkS7Vl/HL2v79jRpxvoCg4ksTlttQf8k= ; Message-ID: <20050717120425.40667.qmail@web52703.mail.yahoo.com> Received: from [201.8.1.126] by web52703.mail.yahoo.com via HTTP; Sun, 17 Jul 2005 09:04:25 ART Date: Sun, 17 Jul 2005 09:04:25 -0300 (ART) From: Halley Pacheco de Oliveira Subject: PostgreSQL 8.0.3 Documentation - Chapter 21. Routine Database Maintenance Tasks To: pgsql-docs@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.526 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200507/17 X-Sequence-Number: 3143 21.3. Log File Maintenance It is written: "Another production-grade approach to managing log output is to send it all to syslog and let syslog deal with file rotation. To do this, set the configuration parameter log_destination to syslog (to log to syslog only) in postgresql.conf. Then you can send a SIGHUP signal to the syslog daemon whenever you want to force it to start writing a new log file. If you want to automate log rotation, the logrotate program can be configured to work with log files from syslog." First is said: "send it all to syslog and let syslog deal with file rotation" Later is said: "If you want to automate log rotation, the logrotate program can be configured to work with log files from syslog" So, how syslog deals with file rotation if it is necessary to use the logrotate program to automate log rotation (working with log files from syslog)? This paragraph is not clear to me. As I understant syslog doesn't deal with log rotation, logrotate deals with syslog's log rotation. The command kill -s SIGHUP `cat /var/run/syslogd.pid` just writes the line "Jul 17 07:55:54 localhost syslogd 1.4.1: restart." in the "/var/log/messages" file, reads the configuartion file, closes and open this file again in Fedora Core 3 standard configuration. It doesn't write a new log file. Regards, Halley __________________________________________________ Converse com seus amigos em tempo real com o Yahoo! Messenger http://br.download.yahoo.com/messenger/