What is the purpose of templates/apache.logrotate?

kristian

Verified User
Joined
Nov 4, 2005
Messages
461
Location
Norway
I want to include another custom logfile to the config in /etc/logrotate.d/apache, and thought I'd add a custom template for it. However, it seems the file in templates/apache.logrotate is actually not the one used to create /etc/logrotate.d/apache:

Code:
# cat /usr/local/directadmin/data/templates/apache.logrotate
/var/log/httpd/access_log /var/log/httpd/agent_log /var/log/httpd/error_log /var/log/httpd/referer_log /var/log/httpd/suexec_log /var/log/suphp.log {
    missingok
    sharedscripts
    postrotate
        /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
    endscript
}

Code:
# cat /etc/logrotate.d/apache
/var/log/httpd/access_log /var/log/httpd/agent_log /var/log/httpd/error_log /var/log/httpd/referer_log /var/log/httpd/suexec_log /var/log/suphp.log /var/log/httpd/sulsphp_log /var/log/httpd/ssl_request_log /var/log/httpd/modsec_audit.log /var/log/httpd/modsec_debug.log {
    missingok
    sharedscripts
    postrotate
        /bin/kill -USR1 `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
    endscript
}

Is the template used for anything at all? How can I make sure any modifications I do to /etc/logrotate.d/apache sticks?
 
Back
Top