Re: log size handling

2008-07-31 Thread z.szalbot

Hello,

 The restart process with apache is that all the child processes are
 shutdown -- either straight away (for a plain restart) or once they've
 finished their current bit of work (fora graceful restart). As the child
 process shuts down, it closes all the file descriptors used for logging.

I put two entries in newsyslog.conf. One for rotating all logs at the start
of the month, and the other one specifically for the site which gets many
hits to rotate its log once it grows more than 25MB in size.

/var/log/*-access.log   644  12*$M1D0 GZC 
/var/run/httpd.pid   30
/var/log/example.com-access.log644  10025000* ZC 
/var/run/httpd.pid   30

The log was indeed rotated when it grew larger than the specified size but
it was not rotated at the start of the month. Any idea why? Is it so that
the first entry effectively eliminates the second? If so, how can I make
sure the log does not grow too large and is rotated at the start of the
month?

Many thanks!

Zbigniew Szalbot

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


unexpected reboot / which files to check

2008-04-27 Thread z.szalbot

Hello,

Which files (apart from /var/log/messages) one should check to determine
why server was suddenly rebooted? I am on a FreeBSD 7.0-Release.

Thanks!

Zbyszek

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]