Configure Logrotate with Webmin
From HostThyself
Webmin can be used to setup Logrotate.
- Sign in to Webmin
- Menu: System -> Log File Rotation
- Add new log file to rotate
Edit Log File
- Setup your preference
- Log file paths
- Number of old logs to keep (I use 5, default is 4)
Commands to run after rotation
For apache use
/bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
This note has been tested on CentOS