Hello,
I update the stats of awstats by a script launched with logrotate:
Code:/srv/www/default/logs/*log { rotate 7 daily olddir logrotate sharedscripts prerotate /usr/lib/awstats/genstat.sh endscript postrotate /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true endscript }
But when my logs doesn't need to be rotated, logrotate doesn't launch the script.
How can I be sure that my logs are rotated everyday or that my script is launch even if access_log and error.log are not rotated
Dino


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks