Date: Wed, 18 Jun 2008 11:29:13 -0400 From: "David Robillard" <david.robillard@gmail.com> To: "FreeBSD Questions" <freebsd-questions@freebsd.org> Cc: Ruben de Groot <mail25@bzerk.org>, Agus <agus.262@gmail.com>, Valerio Daelli <valerio.daelli@gmail.com> Subject: Re: Vsftpd rotate logs with newsyslog... Message-ID: <226ae0c60806180829i30a79975l40aaf42184af78dd@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
>> Well, i take this opportunity also to ask about Apache too....which signal >> should i send? > > A HUP signal should work for apache. Actually, the Apache documentation says that one must use USR1 instead of HUP to send a gracefull restart instead of a hangup. This is to let the children httpd processes some time to finish their transactions before the master restarts. It is also for this reason that the logs should not be compressed by newsyslogd. This is what we use in newsyslog.conf(5) for our Apache servers: /var/log/httpd/access.log 640 5 1024 * B /var/run/httpd.pid 30 /var/log/httpd/error.log 640 5 1024 * B /var/run/httpd.pid 30 /var/log/httpd/ssl.log 640 5 1024 * B /var/run/httpd.pid 30 Of course, your log file names will vary according to your preferences and VirtualHosts. HTH, David -- David Robillard UNIX systems administrator & Oracle DBA CISSP, RHCE & Sun Certified Security Administrator Montreal: +1 514 966 0122
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?226ae0c60806180829i30a79975l40aaf42184af78dd>