Vsftpd rotate logs with newsyslog...
david.robillard at gmail.com
Wed Jun 18 15:29:15 UTC 2008
>> 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/log/httpd/error.log 640 5 1024 * B
/var/log/httpd/ssl.log 640 5 1024 * B
Of course, your log file names will vary according to your preferences
UNIX systems administrator & Oracle DBA
CISSP, RHCE & Sun Certified Security Administrator
Montreal: +1 514 966 0122
More information about the freebsd-questions