Re: Log rotation / newsyslog / apache not reloaded

2010-04-15 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 15/04/2010 11:08:14, Zbigniew Szalbot wrote: > On 15 Apr 2010 at 8:30, Zbigniew Szalbot wrote: > >> Hello, >> >> I have the following lines in my /etc/newsyslog.conf >> >> /var/log/*-access.log 644 30*@T00 JCG >> /var/lo

Re: Log rotation / newsyslog / apache not reloaded

2010-04-15 Thread Morgan Wesström
On 2010-04-15 12:08, Zbigniew Szalbot wrote: > On 15 Apr 2010 at 8:30, Zbigniew Szalbot wrote: > >> Hello, >> >> I have the following lines in my /etc/newsyslog.conf >> >> /var/log/*-access.log 644 30*@T00 JCG >> /var/log/*-error.log644 30*@

Re: Log rotation / newsyslog / apache not reloaded

2010-04-15 Thread Zbigniew Szalbot
On 15 Apr 2010 at 8:30, Zbigniew Szalbot wrote: > Hello, > > I have the following lines in my /etc/newsyslog.conf > > /var/log/*-access.log 644 30*@T00 JCG > /var/log/*-error.log644 30*@T00 JCG I added /var/run/httpd.pid at the end of bo

Re: log rotation recommendations

2007-03-24 Thread Roger Olofsson
Hello Jeffrey, I am not familiar with logrotate but my newsyslog.conf rotates whatever I want just fine. As an example I have this for a small almost unused apache: /var/log/httpd-access.log 644 7 1000 24B /var/run/httpd.pid 30 /var/log/httpd-error.log6

Re: log rotation recommendations

2007-03-24 Thread Lars Kristiansen
Matthew Seaman skrev: Jeffrey Goldberg wrote: Having recently moved from Linux (SuSE) to FreeBSD (6.2-p3) I'm wondering what the recommended way of rotating logs (principally postfix and apache). I see that logrotate, with which I'm familiar, is in ports. I also see that there is a file /etc/

Re: log rotation recommendations

2007-03-24 Thread Matthew Seaman
Jeffrey Goldberg wrote: > Having recently moved from Linux (SuSE) to FreeBSD (6.2-p3) I'm > wondering what the recommended way of rotating logs (principally postfix > and apache). I see that logrotate, with which I'm familiar, is in > ports. I also see that there is a file /etc/newsyslog.conf, b

Re: log rotation, one process doesn't know about it

2006-10-22 Thread Zbigniew Szalbot
Hello, On Sat, 21 Oct 2006, Zbigniew Szalbot wrote: Do one of the following: 1) Configure both exim and dovecot to log through syslog with the same facility. Then configure syslogd to put that facility in the file you want. What I had to do to make it work was to remove log_path = /var/l

Re: log rotation, one process doesn't know about it

2006-10-21 Thread Bill Moran
In response to Zbigniew Szalbot <[EMAIL PROTECTED]>: > Hello, > > On Sat, 21 Oct 2006, Bill Moran wrote: > > > Do one of the following: > > 1) Configure both exim and dovecot to log through syslog with the same > > facility. Then configure syslogd to put that facility in the file > > you wa

Re: log rotation, one process doesn't know about it

2006-10-21 Thread Zbigniew Szalbot
Hello, On Sat, 21 Oct 2006, Bill Moran wrote: Do one of the following: 1) Configure both exim and dovecot to log through syslog with the same facility. Then configure syslogd to put that facility in the file you want. As FBSD is still new to me, I am trying to understand what it would i

Re: log rotation, one process doesn't know about it

2006-10-21 Thread Bill Moran
On Sat, 21 Oct 2006 09:33:34 +0200 (CEST) Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: > Hello, > > I have set up dovecot to log its data to the same log as exim does. This > works fine till midnight when it comes to log rotation. Then exim still > logs to its log but dovecot ignores it. > > No

Re: log rotation

2004-03-15 Thread Bart Silverstrim
On Mar 15, 2004, at 7:37 AM, Ruben de Groot wrote: On Mon, Mar 15, 2004 at 10:30:05PM +1030, Wayne Sierke typed: On Mon, 2004-03-15 at 10:37, Bart Silverstrim wrote: Quick questions: I've run across some mumblings in the ClamAV lists about Clamd not logging anymore (or not scanning anymore?) when

Re: log rotation

2004-03-15 Thread Wayne Sierke
On Mon, 2004-03-15 at 23:07, Ruben de Groot wrote: > On Mon, Mar 15, 2004 at 10:30:05PM +1030, Wayne Sierke typed: > > On Mon, 2004-03-15 at 10:37, Bart Silverstrim wrote: > > > Quick questions: > > > I've run across some mumblings in the ClamAV lists about Clamd not > > > logging anymore (or not s

Re: log rotation

2004-03-15 Thread Ruben de Groot
On Mon, Mar 15, 2004 at 10:30:05PM +1030, Wayne Sierke typed: > On Mon, 2004-03-15 at 10:37, Bart Silverstrim wrote: > > Quick questions: > > I've run across some mumblings in the ClamAV lists about Clamd not > > logging anymore (or not scanning anymore?) when the maximum > > logfile size is reache

RE: log rotation

2004-03-15 Thread Remko Lodder
INet.org www.mostly-harmless.nl Dutch community for helping newcomers on the hackerscene -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Wayne Sierke Verzonden: maandag 15 maart 2004 13:00 Aan: Bart Silverstrim CC: FreeBSD Questions Mailing List Onderwerp: Re: lo

Re: log rotation

2004-03-15 Thread Wayne Sierke
On Mon, 2004-03-15 at 10:37, Bart Silverstrim wrote: > Quick questions: > I've run across some mumblings in the ClamAV lists about Clamd not > logging anymore (or not scanning anymore?) when the maximum > logfile size is reached. Is anyone in FreeBSD running this, and if so, > are you using Newsys

Re: Log Rotation

2003-12-28 Thread Matthew Seaman
On Sun, Dec 28, 2003 at 01:03:14PM -0500, Gerard Samuel wrote: > Yes, Im familiar with newsyslog, but Im not sure how it will play with > rotating PostgreSQL's log file, as PostgreSQL seems to need some extra TLC > when rotating the log while PostgreSQL is running. > http://www.postgresql.org/d

Re: Log Rotation

2003-12-28 Thread Marc Wiz
On Sun, Dec 28, 2003 at 01:24:02PM -0500, Scott W wrote: > > The easy solution is to see if any of the log rotation scripts have the > 'right' behavior...if not, you can write your own script to do it, test > it by rotating the logs and then intentionally doing something to > produce log output

Re: Log Rotation

2003-12-28 Thread Gerard Samuel
On Sunday 28 December 2003 01:34 pm, Lowell Gilbert wrote: > Postgres knows how to use syslog(8) for its logging, which is another > option also quite simple... > True. I have to investigate this option... ___ [EMAIL PROTECTED] mailing list http://list

Re: Log Rotation

2003-12-28 Thread Gerard Samuel
On Sunday 28 December 2003 01:24 pm, Scott W wrote: > This is a simple solution, and has the potential to lose a few log > entries due to the time from the completion of the original log copy > until the original log file truncation is completed, but should be fine > for home, non critical or low u

Re: Log Rotation

2003-12-28 Thread Lowell Gilbert
Scott W <[EMAIL PROTECTED]> writes: > Just a guess here, but what the problem likely is is that Postgres > keeps a file descriptor open to it's logfile, which means that > 'simple' log rotation, eg just moving the original logfile to a backup > name or gzipped file will break the logging as pg won

Re: Log Rotation

2003-12-28 Thread Scott W
Gerard Samuel wrote: On Sunday 28 December 2003 12:36 pm, Lowell Gilbert wrote: Gerard Samuel <[EMAIL PROTECTED]> writes: In particular, Im looking to see if there is a "FreeBSD" way in rotating PostgreSQL logs. Any advise would be appreciated. newsyslog(8) is part of the base system... Yes, I

Re: Log Rotation

2003-12-28 Thread Gerard Samuel
On Sunday 28 December 2003 12:36 pm, Lowell Gilbert wrote: > Gerard Samuel <[EMAIL PROTECTED]> writes: > > In particular, Im looking to see if there is a "FreeBSD" way in > > rotating PostgreSQL logs. > > Any advise would be appreciated. > > newsyslog(8) is part of the base system... Yes, Im famil

Re: Log Rotation

2003-12-28 Thread Lowell Gilbert
Gerard Samuel <[EMAIL PROTECTED]> writes: > In particular, Im looking to see if there is a "FreeBSD" way in > rotating PostgreSQL logs. > Any advise would be appreciated. newsyslog(8) is part of the base system... -- Lowell Gilbert, embedded/networking software engineer, Boston area:

Re: log rotation

2003-03-03 Thread Chad Kline
for i in /var/run/*.pid; do kill -1 `head -n 1 $i`; done Thank you, this seems to have solved my problem nicely :) > Since I upgraded to FreeBSD 4.7, I notice the > following problem: > > Once a month when my log files rotate > (simply gzipping the old, and the creating a new empty log file > via

Re: log rotation

2003-03-02 Thread Clement Laforet
On Sun, 02 Mar 2003 23:50:55 + "Chad Kline" <[EMAIL PROTECTED]> wrote: > > Since I upgraded to FreeBSD 4.7, I notice the > following problem: > > Once a month when my log files rotate > (simply gzipping the old, and the creating a new empty log file > via a cron job) the log files stay empty

Re: log rotation

2003-03-02 Thread Jonathan Chen
On Sun, Mar 02, 2003 at 11:50:55PM +, Chad Kline wrote: > > Since I upgraded to FreeBSD 4.7, I notice the > following problem: > > Once a month when my log files rotate > (simply gzipping the old, and the creating a new empty log file > via a cron job) the log files stay empty. all permissio