0 Members and 1 Guest are viewing this topic.
/home/httpd/*/stats/*_log { daily rotate 30 #create 0664 apache apache compress notifempty missingok}/home/*/__processed_stats/*_log { daily rotate 30 #create 0750 root root compress notifempty missingok}
There should be something like this: postrotate /etc/init.d/httpd reload > /dev/null endscriptSee: https://serversforhackers.com/managing-logs-with-logrotate
## Kloxo LogRotate# Initial version# Needs cleanup# Using this one on LxCenter server# Created by Danny Terweij <d.terweij@lxcenter.org>## Daily rotates (compressed) and keeps maximum of 30 days## add and modified by Mustafa Ramadhan <mustafa.ramadhan@lxcenter.org>/home/httpd/*/stats/*_log/home/*/__processed_stats/*_log/usr/local/lxlabs/kloxo/log/*{ daily rotate 30 #create 0664 apache apache compress notifempty missingok sharedscripts postrotate sh /scripr/restart-web -y >/dev/null 2>&1 || true sh /scripr/restart -y >/dev/null 2>&1 || true endscript}
Page created in 0.047 seconds with 17 queries.